To parse the UserAccountControl field in Active Directory you have to use a bit-wise and of “&” and not “&&” to check the value. Below are some examples Here is a MSDN page that has more information.
This MS site also has more values listed.
#Check if the account is Disabled $strStatus & 2 #Check if the account is Locked $strStatus & 16