That should work just as well. Something like...
 Code:
$OU = GetObject("LDAP://"+CreateObject("ADSystemInfo").ComputerName).Parent

If Instr($OU,"Terminal Servers") AND InStr($OU,"Headquarters")
  ;Do Stuff...
Endif


Good luck.