You'd need a battery with UPS-like functionality (and doesn't beep when it's taken off power), otherwise every time you plug and unplug it your mac would restart.
Which is surprisingly hard to find for a portable (usb-C) battery.
Which is surprisingly hard to find for a portable (usb-C) battery.
Annoying during a power outage though.
Works on all APC UPSes that I've tried, at least.