Some neat alternatives to view the battery info on a UPS connected via USB. Probably a way to do it through a serial port as well but I did not have that interface.
gwmi win32_battery
https://github.com/Pro/battery-monitor
https://www.e-apostolidis.gr/microsoft/powershell/auto-shutdown-hyper-v-usb-ups/