An uninterruptible power supply (UPS) is essentially a giant battery pack attached to an extension lead. It's more advanced than that alone, but it's pretty much how one works when installed at home.