I create above script that you can find in a gist (for convenience):
https://gist.github.com/simonsan/2b0103b5e49c3e6a3a9d9abc0674edca
It may be nice to add this functionality to ocrs-cli itself though. This is useful, so the OS search engine can index these files and you can search them.
For that, it may be more useful to have an index folder where the text files are created with a path to the file they belong to? Or an option to decide if they should be stored in the same directory or in a central directory?