...
The module will automatically create a src/ folder. Right click on it, select New Groovy Class (or better is Groovy Script, but it gave me an error a bug in 2021.2 and 2021.3 cause this to fail).
If you choose New Groovy Class, you can delete the boilerplate class definition, and just write regular commands outside of a class. This should be aware of any grouper classes you reference
...