This is working for me, running this script in self service.
currentUser=$( ls -l /dev/console | awk '{print $3}' )sudo -u
${currentUser} defaults write
/Users/${currentUser}/Library/Preferences/ByHost/com.apple.controlcenter.plist
Bluetooth -int 18e...