I was thinking what if you try to use PowerShell commands instead of trying to screen scrape from Google Chrome?
Invoke-WebRequest -Uri "https://192.168.1.1" | Select-Object -ExpandProperty StatusCode
This will return a 200 series response if the site is healthy and 300, 400, 500 if the site is not healthy.