New answers tagged static-website
In principle PHP can do this with exec(), so WordPress can as well. You do not specify enough details, but it sounds either like form submit or Ajax request. Different implementation but in the end you will be running exec() just as well. PS think really hard on how secure it will be and which kind of data you will allow to pass this way.
Top 50 recent answers are included