Bash Script which calls osascript stops working when run by launchd

I am trying to troubleshoot a problem with a bash script that gets called by launchd. Here's a quick summary Calling the script manually by itself works fine with no errors. Within the bash sc...