Hacker News new | ask | show | jobs
by jude- 4262 days ago
The other key limitation of PowerShell is that its commands all run in the same process (e.g. PowerShell is akin to a REPL). By contrast, UNIX programs each run in their own process, giving the programmer a much greater degree of freedom in the design and implementation of each program.

You can do IPC with PowerShell [1], but it's nowhere near as simple as UNIX-style piping.

[1] http://coders-corner.net/2014/05/11/inter-process-communicat...

1 comments

PS has the concept of jobs, an amalgamation of code and environment that is serialized to a separate powershell.exe process (potentially even to a different networked Windows machine). Communicating with these remote commands is identical to communication with a command - piping in and out of objects.