
Auto Shutdown has a large list of commands for various operating systems. You can easily tell Auto Shutdown to power down your computer, hibernate/sleep, or even execute an external command — you could for instance, have Auto Shutdown run the update package you’re downloading once the download is complete.
Auto Shutdown is free and works wherever Firefox does.
Auto Shutdown [via MakeUseOf]