Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Display feature availability
StartingFromRelease1.10.5

Powershell as a Shell

As mentioned before, Powershell Jobs should be seen as the analogy for Shell Jobs in the future. That means, every Shell job should be able to be (with any or few changes) converted into a Powershell job. 

Nevertheless, there are some compatibility issues such as:

  • Calling Order parameters or Job parameters:

 

Code Block
Example Shell: 
myscript.cmd %SCHEDULER_PARAM_NAME1%

Example Powershell: 
myscript.cmd $env:SCHEDULER_PARAM_NAME1

 

  • Returning a parameter an its value to an Order:

 

Code Block
Example Shell: 
echo NAME1 = VALUE1 >> %SCHEDULER_RETURN_VALUES%

Example Powershell: 
echo "NAME1 = VALUE1" >> $env:SCHEDULER_RETURN_VALUES%

Examples

Example: Powershell as a Shell

tbd

Code Block
collapsetrue
 Example Shell: 
myscript.cmd %SCHEDULER_PARAM_NAME1%

Example Powershell: 
myscript.cmd $env:SCHEDULER_PARAM_NAME1

 

Example: Powershell API Jobs

...