'Manage terminal with node Powershell : start, interact and stop them

I'm developping an desktop app with electron, where I need to run dynamically many server in the backend : My solution is to use node-powershell, to run powershell command in the backend application. I need to start and stop dynamically terminal and interact with them, push command inner them then get the output in my xterm.js interface.

I found how start and stop it, with Start-Process but I still have no ideas how intrect with thoses, once there are running



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source