variables set with /var are local variables only accessible in the routine in which they were set. Only variables defined with /set are global.

Set would be more appropriate than /var for this feature. Also this feature could work. The parser would just scan the script for lines beginning with SET, just like it scans for ALIAS, RAW, etc etc.

Although I personally don't see any use for it, Maybe the poster can elaborate on it's potential uses.