$assetReport = [System.Collections.Generic.List[Object]]::new() # Do stuff, loopi loops or other things# ...# ...$addToAssetReport = [PSCustomObject] @{ Name = $asset.name Ip = $asset.ip }# Add object to asset report$assetReport.Add($addToAssetReport)