I see

So in the management software for the UPS there should be an option to run a file or program when it reaches a certain power level?

Can I just make it a batch file and run it ?