Invoke-UAScript -Script C:\Temp\Script1.ps1 | Tee-Object -Variable job
I have a dashboard that uses line above to execute a ps1 script as a PowershellUniversal job. How can I take a variable that is created within the ps1 file and use it in my dashboard? For example, If Script1.ps1 stores active directory user properties in $User, how can I use the $User in my dashboard file to display /manipulate that variable as needed?
Drew
Product: PowerShell Universal
Version: 2.1.2