Shell script in a form

Hi,

I was wondering if it is possible to execute a shell script and return a camunda variable to the javascript in an embedded form during runtime. For example, based on a drop down selected, a shell script executes and the result is displayed on a inputbox in the same form.
I am aware of Start and End Listeners Camunda provides, but this is more of a runtime operation and was not able to identify a way to do this.

Thanks in advance

You would have to build a new API, or build a sync process that you manually start within your form and use the variablesInReturn feature