Powershell template execution parameters

You use execution parameters to create the input process script in the Pre Processing form of the activity designer.

For descriptions of the Powershell command fields, see the table in Configure the Powershell execution command.
Note: You must use the executionParam. prefix with all variables in this table.
Table 1. Powershell execution parameters
Name Variable Type Usage
Source source String Target host on which to execute the command.
Script type script_type Enumeration Type of script to run. The possible types are:
  • command: Custom PowerShell command.
  • file: Identifies the MID Server script file to run.
Command command String Command sent to the MID Server for it to run on the target host.
MidScriptFile midScriptFile Reference Reference sys_id of the MID Server script file to execute, when the script_type is file.
PowershellVariables powershellVariables Array of hashmap Hashmap of JavaScript objects with name, value, and type for each object. The type of each object can be one of plain, encrypted, boolean, or null, corresponding to the PowerShell variable type selected in the inputs tab. For example, you might enter:
var newParameter = {"name":"parameterName","value":"parameterValue", "type": "plain" };
Credential tag credential_tag String Specific credential tag this activity must use to run PowerShell commands on the host.
MidCapabilities midCapabilities String (comma separated) List of required MID Server capabilities.
ValueCapabilities valueCapabilities Array of hashmap Capability values used to select the MID Server. For more information, see Scripted value matching for MID Servers. If there are additional capabilities that are assigned by value, use this example to customize the MID Server selection: