On Windows 11, you can power off a computer automatically at a specific time using PowerShell, Command Prompt, Run, shortcut, ...