MDS - Script not working

I have to install an agent from Desktop Central that I need to install when preparing a new Mac (Big Sur) and when I add the script to the MDS it is not installing it, and I can’t find any errors. When I run the script manually on the Mac is working.
Am I doing something wrong or is it not possible to do what I’m doing?

This is the script:
Screenshot 2021-04-08 at 19.04.59

it looks fine to me. Have you tried looking in /var/log/install.log? That should give the error message when it is run.