Hi Brett,
Welcome!!
I’d have a look at using a MOSFET, I covered the basics of selecting one over on my project (still in work).
Also take a look at this MOSFET module: Freetronics N-MOSFET Driver / Output Module | Core Electronics Australia
To help out more what kind of frequency are you looking to switch and how much current is your input able to source?
Re: using a motor driver, you might be able to use it but there are lots of caveats, if you accidentally switch the polarity your circuit might let out the magic smoke