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?
This doesn’t seem to work if a parameter is a scriptblock. Seems the typecasting on Invoke-PSUScript doesn’t understand a scriptblock and uses string instead. Any advice?