Skip to content

Instantly share code, notes, and snippets.

@omidkrad
omidkrad / ExecJavaScript.ps1
Last active April 10, 2023 18:12
PowerShell function to run JavaScript/JQuery and return results back to PS, with timeout
# PowerShell function to run JavaScript/JQuery and return results back to PS, with timeout
# some web page with jQuery in it
$url = "http://jquery.com/"
Function ResetTimer
{
$script:startTime = [DateTime]::Now
}