Apple Shortcuts Error But Not?

I have a Mac mini running the latest version of the Sonoma beta. I have a Shortcut that opens an SSD (ArqArchives) that is attached to my wife’s iMac. When I run it I get an error message (operation not permitted) but it works fine (it opens the volume on my desktop). Any idea why I get an error message if the shortcut works as desired?