Dies ist eine Lösung, die ich gefunden habe. Bitte posten Sie Ihre Antwort, wenn Sie eine bessere Antwort haben (dies ist nur für Befehlszeilenprogramme gedacht, die Statusnachrichten an STDERR anstelle des normalen Ausgabestroms senden):
PS> $output = dos2unix.exe -n StartApp.sh StartApp_fixed.sh 2>&1 $output.CategoryInfo.TargetName | Out-Default dos2unix: converting file StartApp.sh to file StartApp_fixed.sh in UNIX format ...