Powershell Select-String : how to get fullPath and context lines
<p>I have this working</p>

<pre><code>select-string -path C:\test\*.txt -pattern "test" -allmatches –simplematch | foreach-object {
    Write-Host $_.Filename
    Write-Host $_.LineNumber
    Write-Host $_.Line
    Write-Host $_.context.postcontext
 }
</code></pre>

<p>But I'd like to also get FullPath instead of just FileName. I'd like to get also context lines before and after Line but can't seem to make it work.</p>