How can I mimic this command in PowerShell using Start-Process?
my.exe < my.inp 2>&1 | tee my.log
I've tried using PS 3.0 extended output redirection as suggested here, however the log file contains only information about the process.
$app = Start-Process -PassThru -FilePath my.exe -RedirectStandardInput my.inp 2>&1 | Tee-Object my.log
Wait-Process $app.Id