I would like to configure my servers to shutdown Windows via a script without actually turning the systems off.
Software for most UPSs will manage this. You configure the system to turn on after a shutdown, often after a certain percentage of battery charge is recovered. This means that if there is a second second power event, the system will have had time to fully power up and then power down again. I usually set this to 40% but it depends on the load.