Q. How can I easily reference local variables in a remote PowerShell execution?
A. PowerShell v3 and above makes this very easy. Prior to version 3 to use variables in a remote PowerShell session you needed to pass the variables as arguments for example: