I've looked at the PowerShell documentation for how to start a subprocess and create pipes for stdin/stdout.
However, I cannot seem to find any information on the subject.
What I want to achieve is somewhat similar to the C++ code at MSDN:
https://msdn.microsoft.com/en-us/library/windows/desktop/ms682499(v=vs.85).aspx
Does PowerShell provide equivalent functionality as a scripting language?