Does the 'OutVariable' parameter of Invoke-Command work in PS 2.0?In this example, $EC should contain the value returned by '$?':Invoke-Command {& calc;$?} -OutVariable ECwrite-host $ECIt works as expected in PS 3.0 (tested on Windows 7) but the $EC variable doesn't get created when run on PS 2.0 (tested on Windows XP & Windows 7).
Have you seen this problem before in this product?
Please wait...