Getting Session ID from Command Prompt in Activity Creator

Hi all,

Actually I am trying to get the Session ID from Command Prompt using activity creator,but I am facing problem that after executing command the value is not storing in variable. PFA of Screenshot.


But When I am trying to execute the same code in Console Application ,I am able to get the output.
So Kindly Guide me what i am making wrong.

Thanks,
Sharmila