Switching 5V current between two solenoids

Excellent contributions everyone, thank you kindly for the information. I will give that inverter route a shot.