Applying os mac crontap

macos mojave I want to apply a crontab to a pc, but I keep failing with exit code 1.
Could you tell me why?

wait /bin/sh -c “(crontab -l 2>/dev/null; echo ‘* * * * * /Users/macitmsg/Desktop/aaaa/’) | crontab -”

I’m not real comfortable with Mac, but for the same issue on Linux I’d check into the differences between a login shell and a non-login shell. Crontab may not be in your $PATH as, by default, Bigfix isn’t spawning a login shell. You might try

Wait /bin/sh --login -c "your commands"

I still have failed with exit code 1.
Is there any other way ??

thank you