Gettings error:

Error creating user object: -2147221020 Invalid syntax

$sysinfo = CreateObject("adsysteminfo")
If VarTypeName($sysinfo)='object'

; Get user's distinguished name (DN) ...
$username = $sysinfo.username

?"ADsPath = $username"

; Bind directly to user's active directory object ...
$user = GetObject("LDAP://" + $username)

If VarTypeName($user)='object'

; Get the path of the parent container ...
$parentpath = $user.parent

; Get the parent ...
$parent = GetObject($parentpath)

If VarTypeName($parent)='object'
$ou = $parent.name

?"OrganizationalUnit = $ou"
Else
? "Error creating parent object: @error @serror"
EndIf
Else
? "Error creating user object: @error @serror"
EndIf
Else
? "Error creating adsysteminfo object: @error @serror"
EndIf
Exit

Any ideas?
_________________________
"... Great minds talk about idea' s, average minds talk about events and samll minds talks about people...!"