# configure the computer you directly connect to Invoke-Command-ScriptBlock { Enable-WSManCredSSP-Role Server -Force | Out-String } -ComputerName$TargetServer
# get results from all machines in parallel... $results = Invoke-Command-ScriptBlock$code-ComputerName$serverList | # and separate results by PSComputerName Group-Object-Property PSComputerName -AsHashTable-AsString
PS C:\> Set-EnvironmentVariable-VariableName test -VariableValue""-Target User Set-EnvironmentVariable : Cannot bind Argument to Parameter"VariableValue" because it is an empty string. ...