Ups is old tech for computers to save work and shut down. They give a hour or two at bestIf no one has mentioned it yet a UPS (uninterrupted power supply, like a big battery) could be a good option
The lithium power stations are actual battery backups with better batteries, some have ups built in. Which is what’s being recommended and linked to