Windows 11 (or 10) doesn't include an option to schedule an automatic shutdown of your computer, but it's possible to use ...
Windows 11 now lets you control the widgets that appear in the Lock Screen, and you can even disable the feature completely.