Invoke-WuJob does nothing

I want to install remotely updates on my server, for this I am using the command Invoke-WuJob. My script looks like this: $Script = {import-module PSWindowsUpdate; Get-WindowsUpdate -AcceptAll -Install -Verbose -AutoReboot | Out-File C:\PSWindowsUpdate.log} Invoke-WUjob -ComputerName $server -Script $Script -Confirm:$false -RunNow But nothing happens on the remote server. At the moment the remote server doesn’t…

Details