EXPANDENVIRONMENTVARS is explained in the KiXtart Manual. I suggest reading it as it also explains how to debug a script.
_________________________
There are two types of vessels, submarines and targets.