I have a script which creates a WMI object, queries a specific class and then dumps the information into a database. Each time I go to add a new record to the recordset, it errors out with:

IDispatch pointers not allowed in expressions!

The second line of code is what triggers the error:

$RetVal = $rs_Software.AddNew("IDN", $objInv.IdentifyingNumber)
$rs_Software("Name") = $objInvt.Name

Any suggestions? - Thanks