WFA commands are also PoSH scripts, so if one PoSH script can call another, WFA commands too can do it.
Perhaps this can do it: Use this line in your WFA command code
$var2 = Invoke-Expression <path_to_script_1>
or $var2 = Invoke-Expression <path_to_script_1> <param_list>
Google more on this and lots of info are available.
@ I have a script which update an Oracle database, a unique identifier is created which I would like to use later in the workflow.
-----
If the unique identifier is returned by first script, the the calling script( i.e. WFA command ) can sure obtain this.
But do you want 2 scripts? Maybe You can copy the contents of script1 in WFA command itself. Just thinking of some possibilities but it perhaps depends on you code.
If this post resolved your issue, help others by selecting ACCEPT AS SOLUTION or adding a KUDO.