/set variables are global, in that they remain until you /unset them or manually remove them, and they can be used by ALL scripts.

What you're after is probably /set -u. If you use /set -u <var> <value> then that script and all scripts it calls will be able to access the variable.