Hello Ashu,
Please have a look at
this[
^] tutorial.
Basically you need to use
createScope
method to create the scope within which the script is going to run and then set the variables (
scope.SetVariable(Key, Value)
) you want to pass to the script in it. The script can refer to these variables using the key specified in setVariable call.
Regards,