5

Getting the following error in the log when running from the management pack –

[07/15/2016 14:16:37.785]: Exception caught by script
[07/15/2016 14:16:37.800]: Method invocation failed because [mshtml.HTMLDocumentClass] does not contain a method named ‘querySelector’.
[07/15/2016 14:16:37.816]: At D:\Monitoring\Citrix\Scripts\Test-CitrixApp.ps1:163 char:5
+ $internetExplorer.Document.querySelector(“html”).outerHTML | Out-File -FileP …

when manually running it completes successfully.

usgandrew answered