PowerShell remove item from array code example
Example: PowerShell remove object from array
$VarWithArray | Where-Object { $_ –ne "String to search for and remove" }
$VarWithArray | Where-Object { $_ –ne "String to search for and remove" }