title: redirect powershell output c++
body: <p>How I can redirect powershell output to my c++ program? Now I am adding <code>| Out-File "MyFileName"</code> to command, then read this file in program. How I can do that without file? I know I can do this by using C# or CLI, but I need something like pipe, that’s perfectly worked with cmd.</p>