1. It's mostly in-process.
2. Yes, there's a "pipeline" concept.
It's a quite a... quirky language, but you can[2] do pretty much anything down to calling C functions, etc.
PS. PowerShell is on Linux now too[1]
[1] https://azure.microsoft.com/en-us/blog/powershell-is-open-so...
[2] You probably shouldn't.
1. is whatever encoding the CLR uses for IPC efficient enough for all purposes?
2. can you stream objects / push multiple objects? (some programs, such as tar, generate potentially massive amounts of output that you cannot buffer)
Otherwise, that actually sounds a good deal stronger than my initial suggestion, and potentially a lot more powerful. (I think I just wonder about its generality & performance.)