The following Powershell-Script uses the Windows Update Powershell Module to Download and Install Windows Updates at Shutdown / Restart.