How Can I Invoke Shell Command `which`?

Yes, my previous version is this:

Execute a Haskell Script with Arguments - Plug In Actions - Keyboard Maestro Discourse

Could you tell me what do you mean by that ? The plug-in attempts to run the Haskell source code passed as argument.