Similar error:

Script error : unknown command !
$objSite.GetInfoEx($arrObjectBL,0)

It does not seem to like $objSite.GetInfoEx