Switch a 12 V solenoid from a separate supply through a rated driver or relay, with flyback suppression and a fail-state chosen for the mechanism.