Execute batch file in Powershell
问题 I want to execute the following from a batch file: "C:\OpenCover\tools\OpenCover.Console.exe" -register:user -target:"%VS110COMNTOOLS%..\IDE\mstest.exe" -targetargs:"/testcontainer:\"C:\Develop\bin\Debug\MyUnitTests.dll\" ... " PAUSE Now I would like to log the output of the process to a file for which I came across the quite handy powershell usage of powershell "dir | tee output.log" but this does not take my batch file as first argument ( powershell "my.bat | tee output.log" ) because it is