Invoke JavaScript

Universal Dashboard is now a part of PowerShell Universal. This documentation is for reference to the v2 version of Universal Dashboard and is no longer maintained. PowerShell Universal Documentation can be found here.

Invoke JavaScript


You can use Invoke-UDJavaScript to execute arbitrary JavaScript from any UD Endpoint.

Invoke-UDJavaScript -javaScript "console.log('Hello!')"


You can use Invoke-UDEvent to invoke the event handler for any element using JavaScript.

Invoke-UDEvent -Id 'elementId' -Event 'onClick'