You may have already figure this out, but if you give /bin/bash Full
Disk Access in Security & Privacy, that will resolve this issue. Not
sure if that's the most secure way to handle it. But it works.
https://www.bitdefender.com/support/silent-uninstallation-of-password-protected-endpoint-security-for-mac-2718.htmlYou
may need to change the line to sudo
/Library/Bitdefender/AVP/common.bundle/UninstallTool
--password=[password]