I’m trying to figure out a way to make the Dashboard show up a loading bar while waiting for a web request to complete. I haven’t been able to find a way to catch the
Invoke-WebRequest execution status to show up a loading bar while the request is in progress. I have tried the Start-Job / Wait-Job solution, but it doesn’t seem to work as expected. When I query the web service it take roughly 20 sec to load and the Start-Job / Wait-Job takes roughly 2 seconds to give me a completed state which can’t be true.
I’d love some thought or ideas.
Many thanks in advance for your help !