PowerShell expressions and operators

I am trying to get this PowerShell command to function, but this is my first attempt using PowerShell and I am failing....

Using a command Get-WSUSUpdateClassifications | ? {$_.Title -eq "Critical Updates"}

That works and returns the list I am wanting.  But I would like it to also return anything that matches "Security Updates" and all the commands I have tried arent working.

For instance:
Get-WSUSUpdateClassifications | ? {$_.Title -eq "Critical Updates"} -OR {$_.Title -eq "Security Updates"}

Where-Object : A parameter cannot be found that matches parameter name 'OR'.
At line:1 char:72
+ Get-WSUSUpdateClassifications | ? {$_.Title -eq "Critical Updates"} -OR <<<<  {$_.Title -eq "Security Updates"}
    + CategoryInfo          : InvalidArgument: (:) [Where-Object], ParameterBindingException
    + FullyQualifiedErrorId : NamedParameterNotFound,Microsoft.PowerShell.Commands.WhereObjectCommand

Open in new window

Who is Participating?
floydianoneConnect With a Mentor Author Commented:
... and 5 more minutes of trying.. gave me the answer:

Get-WSUSUpdateClassifications | ? {$_.Title -eq "Critical Updates" -OR $_.Title -eq "Security Updates"}
All Courses

From novice to tech pro — start learning today.