This line looks little messed up:

$oComputer.SetPassword $sPwd

Should maybe be:

$oComputer.SetPassword($sPwd)