How do redirect
- stderr to logfile
- stdout to object
Things I've looked at:
>> and 2>> only redirect to file .
-RedirectStandardOutput and -RedirectStandardError only redirect to file again.
| Out-File cannot redirect stderr.
| Tee-Object same issue.