To execute a script file "foo.groovy" in a directory "some/directory" in the interactive command line tool, execute as following
"foo.groovy" is read into current context of the shell as if you typed in the whole document. If your script only contained method calls, you can explicitly invoke the call to execute.
Full execute syntax may also be used, and is required outside of the interactive command line tool:
To execute the same file without entering interactive mode, run
Parameters can be passed in as Java System properties. For example
Inside the script file, you can access these properties using System.getProperty