Where are you going to use the environment variable?

If you are going to spawn a process using Shell or Run you may need to use "SetL" rather than "Set". The same applies if you intend to use %TERM% later in the KiXtart script