ShutdownWithUpdates is a command-line utility that initiates pre-downloaded Windows system updates and then will reboot or shut your PC down.
You can direct ShutdownWithUpdates to reboot or shut down your machine without update installation. You can also perform actions on the condition that the updates are ready for a restart. Optionally, ShutdownWithUpdates allows you to specify booting into the advanced boot options menu of Windows 8/10.
Windows 10 users, please note, if Windows updates were not downloaded before utilizing this utility, the OS performs a power operation similar to Microsoft's shutdown tool.
Also, keep in mind, some major updates, such as Windows Feature Updates, may require user interaction despite the options specified by this tool. Such a requirement is stipulated by Microsoft and cannot be overridden.