a very simple prototype on this:
just configure direction and datatype of the PowerShellVariables settings