Using a Local Variable in a Remote PowerShell session In PowerShell 2, you could use local variables in remote PowerShell sessions by passing arguments to the remote scriptblock and capturing…