DownloadStringUntilOK
[-url] <String>
[-maxChecks] <int>
[-sleepSeconds] <int>
[-okText] <String[]>
[-failText] <String[]>
Polls a url which prints a string and keeps checking (for a configurable number of checks).
It will poll with a configurable sleep between checks.
If the web response is one of the provided OkText
the process will end.
If the web response is one of the failText
an exception will be thrown
DownloadStringUntilOK -url "https://example.com/status" -maxChecks 50 -sleepSeconds 1 -okText @("Passed") -failText @("Failed","Errored")