Using Ldap search filter

Hello!
thanks for the very useful scripts and in particular for
Set-WSS-Contact-List-From-ActiveDirectory
Can I use LDAP search filter in this script like this: (objectClass=user)(objectCategory=person)(!(userAccountControl:1.2.840.113556.1.4.803:=2)) ?
If I can, how can I do that?