PowerShell Remova o objeto da matriz
$VarWithArray | Where-Object { $_ –ne "String to search for and remove" }
Bad Bat
$VarWithArray | Where-Object { $_ –ne "String to search for and remove" }