put is a method/function.
try this:
$objUser.Put("UserAccountControl", $newFlag)
_________________________
!

download KiXnet