Windows 11 (or 10) doesn't include an option to schedule an automatic shutdown of your computer, but it's possible to use different tools to complete this task without having to resort to third-party ...
I have an older Windows 2000 PC (Pentium 1 MMX era) and whenever it goes to shutdown it won't power off automatically. Instead it displays a "It is now safe to turn off your computer." screen.