I am trying to determine what OU a computer is in.

using the UDF

Call "Incontainer.udf"

Code:
   $rc = InContainer("OU=ComputerName,OU=Site,OU=BU,DC=us,DC=guess,DC=com", "Computer")
? $rc



I am getting the error code

Script error : expected expression !
$Name2 = TranslateName (3, "", 3, $Name1, 1)

Any Idea? I have both the InContainer.udf and TranslateName.udf functions in the directory as the script.