$servers = Get-Content ‘serverlist.txt’ Write-Host Write-Host "Issuing Patch Command to machine specified in serverlist.txt" Write-Host foreach ($server in $servers) { Write-Host Write-Host $server Invoke-Command -Computer $server -ScriptBlock {schtasks /run /tn “PowerShell - Invoke Windows Updates”} } Write-Host