You could use the shutdown command-line command. You could tell the system
to shutdown after a given number of seconds.
You could create a scheduled task to run and shutdown the machine using the
shutdown command-line command at a certain time with a given number of
seconds warning.