Check this article for an overview of how to do it, and to get startup command code to open a specific form:
http://axcoder.blogspot.com/2010/10/how-to-open-form-in-running-ax-from.html
I have tried to create another pipe in order to make my own implementation of the pipe handling, but it seems like anything else than the pipe name for Events is ignored.