@jsonbecker Get File from Folder is probably what you want. Make sure the script output is just the path and nothing else. Some scripts tend to output a newline at the end; you can strip that away with tr -d '\n'.

The shortcut below should get you the file to further play around with.

A screenshot of the app Shortcuts on macOS with two actions: Run Shell Script and Get File from Folder. The latter uses the output from the action before as the path for grabbing the file.