Call/Run a Mathematica (.m) Shell Script from WordPress Page/Blog

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.