This is an interesting idea - you can use LEM to "append text to file", so you could create a text file with the inputs and create a service/task that checks the file for new data and "do something" externally.
There is a Thwack FR for running scripts from LEM, too, so be sure to vote - Active Reponse Option to Execute Script/Program