I'm trying to populate the results from a powershell snippet into an Automise variable using a Run Script action specifying Powershell as the scripting language.
In the OnExecute script section I've got:
$FBVariables.SetVariable(%vRandom%) = get-random -minimum 99999 -maximum 1000000
which is what I've found in the help topics for this. It fails with bunch of Powershell errors. I've also tried:
$FBVariables.SetVariable(vRandom) = get-random -minimum 99999 -maximum 1000000
but that also fails with Powershell errors (but different errors from the first try)
I've also tried:
vRandom = get-random -minimum 99999 -maximum 1000000
as well as
%vRandom% = get-random -minimum 99999 -maximum 1000000
All fail with various errors.
I assume this is possible and I'm not running it correctly. Anyone care to set me straight? BTW Powershell 3 & Automise 184.108.40.2068 is what I have on my Win 7 box.