Well, there is no CLI option right now. The main reason is you can, and you probably will, find multiple results for your search string.
Other than simplifying what you can already do with a combination of "grep" and "dd", the main advantage of RecoverPy is its TUI which lets you select a result between maybe thousands.
And I worked to optimize performance if you, for example, search the string "e" in your whole home partition. Which would be a disaster if I output the result into a file.
Overall I guess a CLI option would be a great addition but I have no good idea in mind to make it work :/ The only thing I see is like outputting the first result from Google into a file. Good for the user if the first one is the right one, but else...