In reference to the question asked here
How to execute a Groovy Script from my Grails app?
which works except ...how do I pass arguments ?
def cmd = ['groovy.bat', 'C:\\my path\\mysript.groovy']
for a script that is run from the command line like
groovy myscript.groovy -name params.name -project params.name
using CliBuilder for arguments and params from form submitted