Zend certified PHP/Magento developer

Launch a Spark application on the cloud on button click [closed]

I have an interface that has a button which when clicked should launch a spark application on the cloud: normally the application is launched through spark-submit command.
How to achieve that button with Javascript?