I'm trying to find the best way to store my various PowerShell scripts in a single location rather than on each of the PowerShell Hosts' local filesystem. I've been able to create a ResourceElement with the script but if the script has input parameters, how do you pass those in?
For example, resource element has this script contents:
param ( [string] $server ) return $server
And a workflow retrieves the contents of the resource element into say variable named script and then used with invokeScript:
output = System.getModule("com.vmware.library.powershell").invokeScript(host,script,session.getSessionId()) ;
How do you input the $server parameter?