Hi Hung,
It makes sense to break this up into two pieces. The first is how to reference dataset variables in PAM:
[list]
[*]Process Dataset variable - Process.myVar
[*]Operator Dataset variable - Process.myOperator.myVar (used when referencing a different operator's dataset) or Process[OpName].myVar (used when referencing an operator's own dataset)
[*]Named/Global Dataset variable - Datasets["/path/to/dataset/object"].myVar
[list]
Using the syntax above, you can reference and pass variables from any of those datasets to the script. Then you need read the variables in the Powershell script, which is done using the following syntax:
param($var1, $var2, $var3)
Thanks,
Tom