PowerShell, how to search for a string in the output of the command like grep

PowerShell, how to search for a string in the output of the command, like grep

Your-Command | Select-String -Pattern "YourSearchString"

Comments