is there a way to supress the return value (=Index) of an ArrayList in Powershell (using System.Collections.ArrayList) or should I use another class?
$myArray
Two more options :)
Pipe to out-null
$myArrayList.Add("test") | Out-Null
Assign the result to $null:
$null = $myArrayList.Add("test")