Macro to toggle on/off a driver extension

Hi, it’s a long story but I want to run a macro where I can toggle on of these on of off with the click of a button. Can anyone help me?

There's always a way to have the macro open the System Settings, and use Find Image to change the setting. But maybe that's not what you want. Alternatively, there's sometimes a way to use the macOS defaults command to change the setting, which means it could be done in the background. In some cases there's also a way to use AppleScript, but only if the app you are trying to toggle supports it.

I think there's a typo in your request. Did you mean to say you want "all of these" to be toggled? That's not what you wrote. Do you want them toggled together, or one at a time?