8x8mm switch to control arduino power

I currently have a battery pack that is soldered to an I/O shield for an arduino nano that is used to power my Otto DIY. However, I would like to add the ability to control power via the 8x8mm switch seen here: amazon.com/Uxcell-a16031800 … itch+8x8mm

What and how would be the best way to go about hooking this up? Could I simply cut the red lead in half and connect it to the switch somehow (solder? or other means)? Also, not sure if I understand this correctly but should the red lead connect to the first pin on the switch and then another connection from the last pin on the same side to the I/O shield with the ground still connected directly to the shield? Any advice would be appreciated and thanks in advance.

Wiring will depend on how the switch is operating. This should be indicated in the datasheet of the switch.
A similar switch has the attached specifications. If the switch you sent is similar, then the 2 middle pins should be Common and it will be connected to either the left or right pins depending on the position of the button (pushed or not).
Attached, you will find an example of a wiring diagram. You can use Jumper Wires for connections.
spdt switch 2.png
spdt switch 1.png

Thanks, appreciate the help