We have a set of scripts that keep all devices CIS compliant.
On Catalina this snippet ensured the bluetooth menu was visible.
#!/bin/bash
#CIS 2.1.3 enable bluetooth menu bar
if [[ "$loggedInUser" != "root" ]] && [[ "$loggedInUID" -ne 0 ]]; then
btMenuBar="$(defaults read /Users/"$loggedInUser"/Library/Preferences/com.apple.systemuiserver menuExtras | grep -c Bluetooth.menu)"
if [ "$btMenuBar" = "0" ]; then
sudo -u $loggedInUser open "/System/Library/CoreServices/Menu Extras/Bluetooth.menu"
fi
fi
Post Big Sur upgrade the /System/Library/CoreServices/Menu Extras/Bluetooth.menu file no longer exists and although I do see a bluetooth menu item on my screen, I can not for the life of me figure out how to open it from the command line.
Any suggestions?

