Had some fun working with a challenge posed by @awakecoding A POC that can run multiple #PowerShell named pipe instances with custom pipe names. Usually you have to start a new process but this can be done in proc. Non-public APIs so not production code https://gist.github.com/jborean93/43c8338accc3f0eee95f8c43fec61e6f
Code to run a PowerShell named pipe server as a Task

Code to run a PowerShell named pipe server as a Task - PwshPipeServer.cs

Gist
@jborean @awakecoding I really like your version of "fun" 😁
@sassdawe @awakecoding he comes up with the best challenges. A pity none of them use public APIs though :)
@jborean @sassdawe the best APIs are always somehow kept private 😜 that's where all the fun is
@awakecoding @jborean can you auto-generat documentation for these?
@sassdawe @awakecoding not sure what you mean sorry. I added the docstring for the method manually