If you want to show output to console as well as to a variable, use -InformationVariable common parameter.
I would suggest you to use the built in output capabilities of pester. Pester can give detailed results in NunitXMl format and the can be used by different nunit readers to build beautiful html reports.
Get-Help Invoke-Pester -ShowWindow #search for examples
The topic ‘Capture the Executing output’ is closed to new replies.