This script is designed to provide standard users the ability to delete apps on their own, e.g. via Jamf Self Service Policy.
To find out the bundle identifier of an app try this:
/usr/libexec/PlistBuddy -c "Print CFBundleIdentifier" "/Applications/YOUR-APP.app/Contents/Info.plist"
Blacklisted apps will show the following to the user:
...