PowerShell has two operators that do very similar jobs –contains and –in. So which should you use –contains or –in.
From the help file.
-Contains: Tells whether a collection of reference values includes a single test value.
-In: Tells whether a… Read the full text.