You could set the temp environment variable yourself from the command-line 'set temp=.'. Setting temp using $ENV{temp} might not work, depending on how the module grabs the environment variable. ENV::C can sometime help with that.
%USERPROFILE% might be a better bet than %ALLUSERPROFILE%, or even %HOMEPATH%.