You should switch to Direct Connection. UiPath has its own terminal client, and it’s much simpler and more reliable than using a third party client.
You have to put varSession into the value for the next process’ argument. Session - In - TerminalConnection - value (where it says Enter a VB expression)
Oh I thought the screenshot was from the Invoke’s parameters.
I would expect that you can, but haven’t used third party in a long time. Is the third party client closing after the first Terminal Session completes?
Oh, is your Invoke Process inside the original Terminal Session activity? varSession doesn’t get populated by the original Terminal Session activity until that activity completes. varSession won’t be available to anything within the original Terminal Session activity.