I solved this conundrum via a different route with the Lunatico Astronomia Dragonfly which has an ascom driver and very versatile ability to script. My roof is also controlled by the Dragonfly and as part of the roof close script I call for the power to each device to be switched off allowing for ccd warm ups, booting off my mount, ‘wsleep’ durations between relay triggers etc, the last task is it sends the pc to sleep.
I had used a couple of different ethernet power switches prior to this that had scheduling abilities and could also be scripted. It worked via their own schedules or with a script triggered in Windows task Scheduler but if the obs shut down earlier than anticipated the devices remained powered for many hours, as Buzz noted.
I use this system with the Dragonfly in my home obs and also in the shared remote setup in e-Eye with my imaging partner Steve Milne. The pc is also powered by the Dragonfly with its own bios set to start when the power supply cycles power so we can re-boot remotely if needed. The Dragonfly has an app enabling connection to its relays from anywhere.
It is an excellent product and Jaime from Lunatico is very helpful and responsive.
I’m not sure if I’m transgressing the forum rules here by endorsing the Dragonfly and Lunatico . . . .