Output all Invoke-Expression in PowerShell v2
问题 Trying to run an command-line executable from within a PowerShell script, unfortunately the current limitation is the host running only version 2. The command runs fine, however it appears to only be partial output that is added to the variable, and just by chance the most important information is being missed. Is there anyway to capture everything into the output? $output = Invoke-Expression ($itemCommand) Write-Output $output Testing on v3 and v4 works just fine, in fact was able to get