For environment variables, there's a shortcut syntax:
$env:username
I'm not sure where "Remotely" comes into this question, though.
For environment variables, there's a shortcut syntax:
$env:username
I'm not sure where "Remotely" comes into this question, though.