How to get the status of DND?
I have found an old one here: Toggle Do Not Disturb, which does not work on Big Sur.
Also, I have tried
defaults -currentHost read ~/Library/Preferences/ByHost/com.apple.notificationcenterui doNotDisturb
Which does not work either.