Consider a process having a run script operator:-
1. Create variable and assign a value to it. eg. Process.serviceName, Process.computerName
2. click on run script operator.
3. Go to parameters, click on Add parameter button. Type in the name of variable you created.
4. Select Script extention as .ps1
5. In the inline script, put the PowerShell script, eg.,
#---------------------------------------------
$Name= $args[0]
$CompName= $args[1]
Get-Service $Name -ComputerName $CompName
#---------------------------------------------
-- You can add multiple ITPAM variables in parameters and call them in the inline script using $args[] with their correct index values.
args[0] will carry the value of 1st parameter that is Process.serviceName to the inline script
args[1] will carry the value of 2nd parameter that is Process.computerName to the inline script.
###################################################################
The process looks like this:
Create variables, here I have created two process level variables:
Adding Parameters:
Calling parameters in the inline script: