Returns true if the list contains the specified element.
$[ScriptVariable]::contains(Object c)
c (Object): the element to search for in the list.
The following example illustrates the syntax for the contains list method (using the $recipients list variable created in the add example):
$confirm = $recipients::contains("Winston Smythe")
print($confirm)
true