Hide or show a custom menu bar icon

Here is an example that shows on/off:

Menu Bar - Button on Click - Discussion & Questions - BetterTouchTool Community (folivora.ai)

You could modify this script to also call some action or named trigger to turn eq on / off. How does your current setup for this look like?