$page = Invoke-WebRequest http://localhost:1947/_int_/tab_feat.html if ($page.Content -match "`"logc`"\:`"10`"") { C:\Windows\System32\hasplms.exe -stop C:\Windows\System32\hasplms.exe -start } else {}