Fix for issue #10 passing variables to script and/or parameters

Hi, 

I believe this would resolve issue #10. I'm only getting used with the plug-in code to use it in another project and to experiment with scriptler and security.

Feel free to massage the code as needed.