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.
$ParameterA = 10
$ParameterB = "StringValue"
Submit-JAMSEntry -Name "JobName" -Server JAMSServerName -UseVariables
it would be helpful to have the method for reading parameters on this article, or a reference to this page.
https://www.jamsscheduler.com/doc/JAMSHelp/ParsingParametersandVariables.html