get-service *Exchange* | ? {-not ($_.name -like "*IMAP4*") -and -not ($_.name -like "*POP*")}
Notes:
“?” is the alias for “Where-Object”
CommandType Name Definition ----------- ---- ---------- Alias ? Where-Object