Xbar/BitBar gives “Couldn’t Posix Spawn” for script.

Apple's quarantine system can cause this. Try

chmod +x com.apple.quarantine /path/to/script.sh
xattr -d com.apple.quarantine /path/to/script.sh

In my experience only the xattr is needed but the chmod might help and couldn't hurt.