12v circuit with push button needs to auto press and hold
The circuit can be just a microcontroller driving a relay:



The rest is firmware.

In this case the MCLR/GP3 pin is configured in the GP3 role with internal pullup enabled.