Example: Script execution with paramaters

Previous Next

Here is an example of the execution of a simple PowerShell script with script parameters:

INVOKE        USPowerShell.ExecuteScript

WITH

SELECT        'Write-Output "The values of the parameters passed are $PARAM1 and ''$PARAM2''"',

         'PARAM1', 133.57,

         'PARAM2', 'Parameter value 2'

This results in:

The values of the parameters passed on are 133.57 and 'Parameter value 2'

 

See also

Example: Simple script execution

Example: Stateful test

Example: Dynamically Adding C#

Example: Converting Word to PDF

Example: Query call to the Rules Engine

Example: Manipulation call to the Rules Engine

Example: Call to the Rules Engine with variables

Example: Query call to the Rules Engine and loop through result

USPowerShell