TIL that in #macos you can call #Shortcuts from the command line with the 'shortcuts' command, including passing arguments and getting output, in true Unix philosophy.
h/t to: https://blog.greg.technology/2024/01/02/how-do-you-ocr-on-a-mac.html
Where the author creates an OCR shortcut, with which they get the text from by simply running:
shortcuts run ocr-text -I <image path>