How does nodejs tty.js automatically execute commands through js?

  node.js, question

Nodejs tty.js implements to run command line tools in the browser, but at present it can only accept input to execute commands. Can it automatically execute certain commands through some clicking operations on the page and then js?

Screenshots
clipboard.png

With the request, the landlord to solve ah?
I also want to realize that the web shell is free of login and automatically executes the commands passed by the front end. Several similar open source projects, such as GateOne, Shellinabox, dwebsocket, tty.js, have been studied and cannot be implemented.