Found solution for running Groovy script from java command.
This is not the optimal solution, since it's preferred to use GroovyShell instead, however this fits my needs for other projects.