How to reference input variable from another directory output

Hi Team,
I want to reference variable input from another directory output.
How can I achieve that