In Shortcuts, you can create a shortcut with the action "Set Color Filters" that can be configured to apply, disable, or toggle the filter.
Then run it by using the system command shortcuts run "Set Color Filters" (or whatever you named it).
shortcuts run "Set Color Filters"