Pass Powershell value back to UC4 variable in job

Discussion created by Tyler_Vitanova_1360 on Mar 14, 2016
Latest reply on Jun 6, 2016 by Michael_Lowry
I am creating a process with Powershell and I need to be able to retrieve values from the variables to set sync objects.  This is an example of what I would like to do.

$FunctionArray = @() Foreach($Function in $("&FUNCTION_SELECT#" -split(";",""))){    Foreach($Entry in $VaraFunction){       If($Function -contains $Entry){ :        SET &ENTRY# = $Entry :        SET &NA# = SET_SYNC(FHR.SYNC.&ENTRY#, SET_DOWN)       }    } }

Is there some what of doing this?