Hi,
I'm trying to manipulate script code using variables before invoking it on remote machines. Unfortunately this doesn't work using string manipulation because it is not a string.
$PathVariable = "C:\test"
$RemotCode = {get-childitem -path $PathVariable}
Any ideas how to make this happen? It would shorten my code by 20%
Regards
Michael