And it would be?...?
There's the getenv command, but it appears to only return a single string, based on the particular enviroment variable you query. Anyway, I wrote my own script that will do it too:
string $cmd = "system "set MAYA"";
string $envVar = eval $cmd;
string $buffer[];
tokenize $envVar "=" $buffer;
print $buffer;
Still like to know what script you are talking about Joojaa.