A question about run mac script via jenkins slave

In my team, there are 2 jenkins nodes : Windows PC as a master, Mac as a slave.
What I want to do is to build project by running Shell Scripts(in /Ening/Batchfiles/Mac) in Mac as a jenkins slave.

I connected Mac as a slave in my jenkins system. However, whenever I run Shell Scripts via jenkins, it fails with this message; Operation not permitted
for example)

Engine/Build/BatchFiles/Mac/GenerateProjectFiles.sh: Operation not permitted

I already added java into “full disk access”(because jenkins slaves use java to run) and checked that the shell script already has permission 755.

If anybody knows the solution, please share.

Thank you