I'm adding items to an array called $MissingIps using the following command
$MissingIps = @("")
[System.Collections.ArrayList]$ExistingIps = $MissingIps
if ($lbips -notcontains $awsip){
$MissingIps.Add("$awsip")
}
On execution, PowerShell automatically echos the index position, and I'm struggling to hide that.
Any ideas?