Just for giggles, try adding this to the top of the script.

 Code:
$RC = SetOption("WOW64AlternateRegView","On")


Just to rule out it's not a weird Win64 registry redirection thats causing the problem.