I do not know why it is being redirected
this is virtulization, it works both with protected folders and parts of the registry, as part of UAC (user access control in vista and later)
if the script is not elevated, the virtulization is used when reading parts of the registry

you should at least try running an elevated script, to see what the result is