for somebody like me that this wonderful script doesn't work, it is because my brew installation path was changed from /usr/local/bin/BluetoothConnector to /System/Volumes/Data/opt/homebrew/bin/BluetoothConnector , you have to manually change those script to proper location. http://a4k.io/qww , this is my edit version.
@vitorthis workflow is working great for me. but I have issue there, I have use bartender https://www.macbartender.com, it keep hiding your application icon, see that each of your menu bar are very unique, I have to configure bartender to show this individually