Goodnight Timer shuts your PC down after a defined period of time.
It can automate shutdown, sleep, hibernate, etc.
It is a free utility that can help you shut down various computer tasks.