'Open PuTTY from a webpage to run a specific command

How can I open a PuTTY session and run a specific command on the click on a HTML button?

I tried stuffs like creating a script and running it manually but could not figure out a way to implement it on the click of a button from the webpage. The command will be received from the user in the form of a text box.



Sources

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

Source: Stack Overflow

Solution Source