PS C:\Windows\system32> $cmdOutput = perl -e 'die(1)' 2>&1 PS C:\Windows\system32> echo $cmdOutput perl.exe : 1 at -e line 1. Bei Zeile:1 Zeichen:18 + $cmdOutput = perl <<<< -e 'die(1)' 2>&1 + CategoryInfo : NotSpecified: (1 at -e line 1.:String) [], Remot eException + FullyQualifiedErrorId : NativeCommandError