If the goal is simply to reboot after installing updates, then you can use the PSWindowsUpdate module to install the updates. You can download it from here. Once installed, just open Powershell and type
Get-WuInstall -AcceptAll -AutoReboot
If the goal is simply to reboot after installing updates, then you can use the PSWindowsUpdate module to install the updates. You can download it from here. Once installed, just open Powershell and type
Get-WuInstall -AcceptAll -AutoReboot