I've a simple object defined like this :
$myEvent = "" | Select-Object cn, HomeFolder, Documents, AppData, Rights_Home, Rights_AppData, Owner
the script loops many time and in every loop do a : $AllEvents += $myEvent
Now I want to find in $AllEvents a specific cn value to modify attributes
for exemple : $AllEvents[$idx].Documents = "test"
where $idx is the index value of the element I'm looking for
Thx in advance