Advanced Privacy and security settings in Shortcuts on Mac
Privacy and Security on a Web Page
Once you click Allow, the shortcut runs on the specified web page. If you run the same shortcut on the same webpage again, Shortcuts does not show the prompt again. This permission persists on a per-shortcut, per-webpage basis.
If the shortcut is prevented from running, an explanatory error message is displayed.
Allow scripts to run from a shortcut
Choose Shortcuts > Settings (from the menu bar at the top of the screen).
Select Allow Running Scripts in the Advanced tab.
WARNING: Running shortcuts with scripts could cause data loss.