@rey Okay, then what you're going to want is something like this:
The idea is that you would turn on M2 and M3 to run power through in one direction, and turn on M1 and M4 for the other direction. It wouldn't be a bad idea to have some kind of hardware to prevent any situation where M1 and M3 or M2 and M4 are both on at the same time, as that condition shorts out the power supply
This arrangement is called an H-bridge if you want to do further research! They're usually implemented with four n-channel mosfets but i've used two n- and two p-channel ones here so that it's easier to drive it (you'd need a gate drive voltage higher than your power supply in order to turn on the upper FETs if they were n-channel)
-F