Enabled, but visually hidden shell script

Add an option to enable a shell script to run every x seconds, while also not being visible on the Touch Bar

EDIT: Found a workaround, which is setting button size to 0 by 0. Still, this feels a little janky.

How about run the script inside a visible button but not return any value?

You can also set up timed triggers