Circuit to bypass switch
You can only use an NPN trasnistor to bypass a switch if you know that the switch is connected in the circuit in a way that an NPN transistor will work.

If you don't know how the switch is connectected, you should probably use a small relay.  The relay contacts will be totally isolated from the circuit controlling the relay, so won't interfere with the operation of the original circuit.