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 away without using $output.
Anyone know if it is possible to have a portable copy of PowerShell v3 or v4 on a host running v2?