/usr/libexec/upsshutdown
upsshutdown is a script that runs automatically when the system performs an emergency UPS low power shutdown.