I've experienced the same issue with the Samsung Wireless Printer setup utility (Unknown error 111). It is not a script, however it's a somewhat older app that is not going to be updated by the vendor anymore. What helped me:
I've added the executable permissions on the app's binary:
chmod +x AppName.app/Contents/MacOS/AppName
Then I've been able to start the app directly or from the terminal.
Hope this can also solve your issue.