I want to create an object in PowerShell with one of its private members being a list or array of different objects. There are two important features for this request.
The private member list or array must be able to grow dynamically (how would this work syntactically?)
The solution must be backwards compatible with PowerShell 2.0. This means I can't create a custom class using the "class" keyword.
Is there a way this can be done in PowerShell?