$A = @()
ForEach ( $Thing in $Things )
{
$A += [pscustomobject]@{
Name = $Thing.Name
Color = $Thing.Color
AsOf = Get-Date }
}
$A | Export-CSV -Path $CSVPath -NoTypeInformation
$A = @()
ForEach ( $Thing in $Things )
{
$A += [pscustomobject]@{
Name = $Thing.Name
Color = $Thing.Color
AsOf = Get-Date }
}
$A | Export-CSV -Path $CSVPath -NoTypeInformation