How to build a simple transistor switch?
For the simple switch circuit, note that the supply voltage shall not be over the Vgs max of the MOSFET.







simulate this circuit &ndash; Schematic created using CircuitLab



For dual supply from 2 9V battery, two Schottky diodes would work.







simulate this circuit