Call project script from tag change

I am not using a tag event.
Maybe I’m not making myself clear, or maybe I’m not understanding.

Here I go again.
I have a script in Ignition’s Shared Script Module (global library) very simple, only inserts some records in a database.
I want to run this script in 3 specific times of a day (once per shift). So I’ve made a boolean expression tag and What I want is that when that tag’s value is = 1, run the global script.
I want that script to be run everytime, no matter if the client is open or not. The script should run every time the tag is = 1.

So what I do is create in the project’s gateway event script --> tag change script, a new tag change script that evaluates the value of my expression tag, and when is = 1, call the global script like this: shared.myScript.testScript()

This is what I do that throws me the “Cannot create PyString from null!” error in the logs.