try this...

$objUser.SetPassword($StrPassword)