Display settings -- Toggle Mirroring

Previous versions of the Display Preferences had a mirroring toggle in the Menu bar.

Now you have to go SystemPreferences>Displays>Display Settings>Select stop mirroring from a popup window or Mirror to

Is there a better way?

I’m hoping for an ASObjC solution, or shell scripting, or pref editing.

I can do a UI scripting solution, but I’d prefer not to (especially since that will break when I upgrade to Ventura)

Any suggestions?

→ Script Debugger 8.0.6 (8A62)
→ MacOS 12.6.2

How about this?

Couldn’t get that to install on my system.