switch 12V with 12V ACC (car)
Here are options:


Transistor with a heatsink if need be
Infrared LED along with phototransistor with heatsink if need be


I would only suggest you use these options if you have the components laying around, otherwise you would just be reinventing the wheel as a solid state relay(SSR) is typically made out of one of the options above.