Is there a way to reuse a script when the UPS shuts down my Mac
I have a Mac Studio running macOS Tahoe. I have a NAS connected and would like to send a command to the NAS to shut down when the UPS shuts down the Mac Studio. I don't see any way to configure the UPS to run a script when it shuts down. I don't want to shut down the NAS every time I shut down or restart the computer I only want it to shut down the NAS on a power failure when the UPS Battery level drops below a certain level.
Is this something that I can do with or without a third party package. The UPS is an APC and there is no software from the vendor that works with a MAC.
Thanks
Dan
Mac Studio (2022)