Remote Variables

    However, if you try to run just the Copy-Item command on a remote computer, it will fail:

    There are two possible fixes. The first is to simply include the variable definitions in the script block:

    The special $using: syntax is what makes this version of the command work.