Depending on your setup (i.e. does your compute have IPMI/Redfish compatible iDRAC/iLOM), you "could" enable the Harvester Seeder plugin and then use the Harvester APIs to, for example, put a host in maintenance mode and then power it off.
See the "Power Related Operations" section here:
Harvester Seeder | Harvester
I do not personally have this use case, but it seems a reasonable path to investigate.