Pass variables into Invoke-PSUScript

I have a script that takes input parameters. I want to pass the variables from a dashboard using Invoke-PSUScript -Integrate. I don’t see in the documentation a way to pass variables as script parameters. Is this possible?

Product: PowerShell Universal
Version: 2.9.2

Invoke-PSUScript supports dynamic parameters. For example, if you had a script that accepts a message parameter:



Then you could use Invoke-PSUScript like this.

Invoke-PSUScript -Name 'MyScript.ps1' -Message 'Hello'