Replace New-ObjectGenericType with New-ObjectGeneric