With macOS 12.0.1 Shortcuts’ Run Shell Script, Shortcuts often crashes when reading stdout text. After much experimentation, my workaround: send output to a file and then use Shortcut’s File function to read the file into the workflow.