Ok.. I've been fighting with the SET command for about 90 minutes now...

It refuses to write the variable to the HKCU\Environment. It doesn't give me an error, it just won't put it in there.

Examples of syntax I've tried :

SET VAR="MISCTEXT"
SET "VAR"="MISCTEXT"
SET VAR = "MISCTEXT"
SET VAR = $MISCTEXT

And many other options..

I'm missing something... but what?