How to Schedule Your Windows 11 PC to Auto-Restart Once a Week
To apply updates and any other changes.

Restarting your PC at least once a week allows Windows 11 to install and apply available updates. If you don’t normally reboot your PC, you can automate the process using a couple of methods.