Look at the -Argument parameter of Invoke-Command. There's a defined mechanism to do what you're after.
↧
Look at the -Argument parameter of Invoke-Command. There's a defined mechanism to do what you're after.