Executes a groovy script.