In this example, we create a scheduled job that calls a PowerShell script stored on the MID server in the relative path scripts\.
1. Sample PowerShell script:
$arg1 = $args
$arg2 = $args
#Do some processing
$DisplayName = $arg1 $arg2
WriteHost "Display name output: " $DisplayName
2. Store the PowerShell script in the MID Server folder path: scrips
3. Create the following script in the instance to insert an ECC Queue record so that MID Server can process:
4. Once the record is processed, the result of the script is written in the ECC Queue input.