As close to grep as I have found so far: <some-cmd> | Out-String -Stream | Select-String [options] <some-string> Select-String's -Context option works pretty well ... so far.