What does this give you:
 Code:
$Encoder = CreateObject("WMEnc.WMEncoder")
"Error: " @error ": " @SERROR ?

Reason: see my previous post
if you installed the "Windows Media Encoder 9 Series", I think you should write:
 Code:
$Encoder = CreateObject("WMEnc.WMEncoderapp")