How to enable Do Not Disturb mode with a command?

I would like to toggle Do Not Disturb mode with a command, so I can suppress notifications programatically (specifically, I want to turn on Do Not Disturb when I am playing a game, but not while I’m in the game’s main menu). What command could I run to enable/disable Do Not Disturb?

Seems my Google-fu was not strong enough:

qdbus org.kde.kglobalaccel /component/plasmashell invokeShortcut "toggle do not disturb"

(from https://www.reddit.com/r/linux4noobs/comments/q2l0bs/is_there_any_way_to_schedule_do_not_disturb_for/)