Seeking assistance with shortcut "Run Shell Script"

Hello IOS Dev Community, I'm very new to Apple shortcuts and am on a journey to build up a series of shortcuts to make my life easier on Mac. I have Google Drive linked to Finder, then I made a program like the one below which allows me to select a destination folder in the said Drive folder and move the most recent downloaded file over. I usually start the program by typing in the spotlight search bar, but it would show this error: "ls: .: Operation not permitted" but, when I actually open the Shortcuts app and click run, it works perfectly fine, what could be the reason behind this?

Thank you guys