(Get-EventLog -LogName System | Where-Object {$_.EntryType -eq "Warning"}).count
If I run the command, it returns all warnings, but I only want to extract the count for only 4 event IDs for example 1006,1007,455 and 6003. Could someone help me in this case?