When submitting a JAMS Job from a PowerShell script, users can pass any PowerShell Variable to the JAMS Job being submitted, as long as the name of the JAMS Parameter on the Job matches the name of a Variable in the PowerShell Script.
NOTE: PowerShell Variables may begin with a dollar sign, e.g. "$VariableName". On the JAMS Job, the "$" is not needed, so the JAMS Parameter would be "VariableName"
To pass variables, include the
-usevariables option in the
Submit-JAMSEntry line, as seen below.
Submit-JAMSEntry -Name "Sleep60" -Server JAMSServerName -UseVariables