Named pipes are a great way to communicate between multiple processes. What's makes them even better is that the processes don't have to share the same language.
This article on
Namedpipe in C# will help you to understand name pipe and you can modify the sample to code as per your need.