Use a smart plug to cut power after shutdown, that way when you turn on the smart plug, your system boots up with that bios setting (power on after power loss).
This is what I did with my IoT battery monitors, when voltage crossed a threshold, the script initiated shutdown. I use mqtt to communicate between the various systems, nodered for logic and telegram for notifications.
Making the battery monitors: DIY Wi-Fi Battery Monitor for Inverters/UPS (IoT Lead Acid Battery?)
The system in action:
Some explanation:
A older clip of the automated staggered start-up sequence: