Are you running the 32-bit or 64-bit version of PowerShell when you get this error?
If you don't know, run this in the Powershell session:
[intptr]::size * 8
You should see either 32 or 64.
If you're running the X86 version of PowerShell then you're probably missing the 32-bit version of the WMI classes. Switch to running the 64-bit version.