Call Shell script from Automator on Catalina I created a Automator Program wich connect me with vpn an sets routes for split tunneling via Shell script.

The Program works fine on Mojave - now with Catalina the call 

do shell script "sudo /Users/XXX/Desktop/routen_VPN.sh" with administrator privileges


produces an error 

sh: /Users/XXX/Desktop/routen_VPN.sh: Operation not permitted
Now I have a solution that works for me. If I put the content of the routen_VPN.sh in Automator in AppleScript like this
do shell script "content of routen_VPN.sh" with administrator privileges
it works fine.
Thanks to all who tried to help me with this! :-)