Mac does not allow users to run files from Unidentified Developer to save the users. But now if you know that it was built by your colleague then you can run it.
One of the ways to do this would be to allow apps to be run from Unidentified Developer
Alternatively you can run it everytime by clicking allow - which cannot be done when you are running it from a script!
Mac sets the xtended attributes and disables executing the file. You can see them using
ls -le <filename>
-rw-r--r-x@ ... more details
xattr -l <filename>
com.apple.quarantine: <Some Values>
Remove the xtended attributes
xattr -d com.apple.quarantine <filename>
Grant execute permissions!
chmod 744 <filename>