Native windows does not need a 3rd party driver, you can use the advanced section inside the power setup.
This is assuming you are connected directly to your UPS (ie USB) and windows is already seeing the battery levels.
Under server 2019 it is done through the "power & sleep" section and "additional power settings"
Modify your current plan by clicking on "change plan settings"
click "change advanced power settings"
break open the "battery" section and adjust "low battery action" and "on battery" to "shutdown"
if you want to change the threshold for the action to happen just adjust the "low battery level" section inside that option as well.