Just add -file as a parameter when starting the console.
On windows, it will look like this:
Neo4jShell.bat -file path/to/cql/file
Or you can also print the result to a new file
Neo4jShell.bat -file path/to/cql/file > path/to/output/file
I am also sure that there is a way to do this from the shell, and not at startup, as Stefan Armbruster once demonstrated to me, but for God's sake, I canβt remember how he did it. But this approach also works.
Pieter-jan
source share