Welcome to our site! EDAboard.com is an international Electronic Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.
It depends upon where the switch is. Your options are
(1) Use a relay with the coil energized by a NMOSFET driven with a logic gate.
(2) If the switch is relative to ground, a NMOSFET driven with a logic gate.
(3) If the switch is floating, use an optical isolator and a series pass PMOSFET. The transistor source is connected to the +high voltage and the drain to the load. The gate source has a zener across it with a resistor from the gate to ground. The zener is shunted with the output of the optical isolator. When the isolator is on, the Vgs is zero and no current flows. When the isolator is off Vgs is the zener voltage and curent flows to the load.
In all cases the MOSFET is the type in which a zero gate-source voltage causes no drain current.