On Windows 11, you can power off a computer automatically at a specific time using PowerShell, Command Prompt, Run, shortcut, batch file, and Task Scheduler, and in this guide, I’ll explain all the different methods.
Source: Read More / Windows Central