How to run an ionic command like “ionic serve” using a button click while the node server is running


My problem is that i want to send a command to node js server to run the ionic command when ever i click on the button. I merged two projects but they are not working with simple routing. I think it need to run ionic server at back end