Hi! I am thinking about it!
I think that it is not correct to communicate with Appium UI app. The correct way is to launch/kill node by itself.
Only NodeJS! Only hardcore!
Actually I was thinking about implementation of the standalone maven artifact for Appium/java-client package which could provide ability to launch Appium nodeJS server programmatically. There is an API which can help to achive this. stackoverflow.com. Slideshare.
But it requires java 8. I think @jonahss doesn’t appriciate migration of the java-client to java 8 for now. So it should be the standalone artifact.
I am interested too…