Powershell Windows Update
PS MS update
Windows Update Module Install
Install-Module PSWindowsUpdate
Import-Module PSWindowsUpdate
Windows Update Service install
Add-WUServiceManager -MicrosoftUpdate
Windows Update Command
Install-WindowsUpdate -MicrosoftUpdate -AcceptAll -AutoReboot | Out-File "C:\($env.computername-Get-Date -f yyyy-MM-dd)-MSUpdates.log" -Force
If needed
Set-ExecutionPolicy unrestricted