When an update fails, it halts execution of updates.
While performing updates using the following sequence:
Import-Module WindowsUpdates Get-WindowsUpdate -Verbose | Set-WindowsUpdate -AcceptEula -Verbose -PassThru | Install-WindowsUpdate -Reboot -Verbose }}}
The script successfully downloaded 20 updates and started installing. At 6 of 20 updates the script seemed to have hung, then a Windows Update pop-up showed up telling me to restart. It seems that one of the updates required a restart, although I cannot be sure which one.
After the restart, I ran the script again and 14 updates were successfully installed.