The code is simple, the problem will be
- detecting the start, if it isn’t merely power up
and
- operate the switch
which could be done using a relay in parallel with the contacts of the real switch.
Do you have access to the switch? If it was like a TV remote button it might be harder that a large traditional switch.
a7