Mac OS: /usr/bin/env: bad interpreter: Operation not permitted
Did you happen to open/save the file in TextEdit? That can introduce filesystem metadata (quarantine attribute) leading to the symptom you describe. Try: xattr -l /usr/local/bin/bbcolors and xattr -d com.apple.quarantine /usr/local/bin/bbcolors if you see the quarantine attribute.