How to Stop Windows 10 for Automatically Restarting

In order to finish installing many updates, Windows wants to reboot and will sometimes do so on its own if you don't change the settings.