Script and return values

Hey

Is it possible to run a script from Powershell (from an Dashboard) - and have it return 2 string values?

Mike

You should be able to just use:

$Values = Invoke-PSUScript "Script1.ps1" -Wait -AppToken $AppToken

Currently, you’ll need to provision an app token to make this work.

In 2.5, you’ll be able to use the integrated mode to avoid having to use an AppToken.

$Values = Invoke-PSUScript "Script1.ps1" -Wait -Integrated
1 Like