How to Create an Object Array with Properties in PowerShell?
In this PowerShell tutorial, I will explain how to create an object array with properties in PowerShell. To create an object array with properties in PowerShell, you can use the PSCustomObject type and a loop or a predefined list to populate the array. For example: $objectArray = @(); $objectArray += [PSCustomObject]@{Property1 = ‘Value1’; Property2 = … Read more