The Shortcut that I posted above on May 16 will only run on macOS Sequoia owing to an action (Export Document…) that was only made available in Sequoia.
After some effort, I have created a new Shortcut that I have tested on Sequoia 15.5, Sonoma 14.7.6, and Monterey 12.7.6. I don't have Ventura 13.* installed to test but the Shortcut should work there too. Unlike the May 16 Shortcut that is totally silent (does not open Pages documents on the screen during export), this Shortcut does and there is no cure for it.
This Shortcut (New Pages to Export) allows one to select multiple combinations of Pages documents and folders containing Pages documents — writing the PDF (or Word) export to the same original file location. One makes their selections using the cmd-key to add additional items, and then right-click on the first of that selection. From the secondary menu, one chooses Quick Actions > New Pages to Export. When Pages documents stop opening on the screen during the export operation, you will know the Shortcut is done.
By clicking this link, the Shortcuts application will ask you to install this Shortcut. It will want your permission to run AppleScript and you click Allow. A second request will appear and you click Always Allow. If the Finder Quick Actions menu does not show New Pages to Export, you will need to visit System Settings > General > Login Items & Extensions > Finder. Locate New Pages to Export and select to enable it.
The Shortcut workflow is too long to post here, but once installed into the Shortcuts locally, one can launch Shortcuts, locate New Pages to Export and double-click it to reveal the full Shortcut workflow.