Help with the best wiring M2 Pixcube and Camera

This is my first time here, and I need help to be able to integrate the M2 module, the Pixcube Orange controller and camera.
The camera has connection with M2 through the Hot Shoe pin, the camera can be powered by a 3s lipo battery.
The questions are the following, the M2 module through which port can be safely powered.
How can you send the signal from the pixcube controller so that M2 records the point and at the same time the camera takes photos.
The idea is to use the M2 module in PPK mode only to record the shots.
I thank you in advance for taking the time to read this, and if you have any ideas on how I can configure the circuit without damaging the components.
Cheers.