I am building a golf cart and want to install a Raspberry Pi as a dashboard computer for it. For this purpose, I am using a Raspberry Pi 4 model B and I have a RPi UPSPack V3 for a UPS. I have it wired up so that when I power on the golf cart the UPS gets power, and when I turn off the golf cart the power to the UPS gets cut.
I would like to set it up now so that the Raspberry boots when the UPS gets power and shuts down when the power is disconnected from the UPS (just like a dashboard computer in a car).
I'm kind of new to the subject of UPS so any suggestions would be great.