You can even use the Settings app, and while the power settings ... with the Task Scheduler to run a specific command that will shut down the computer at a specified time. In this how-to guide ...