runnings strings on a file in powershell code example Example 1: powershell output text file Out-File fileName Example 2: powershell parse text file Get-Content -Path C:\text.txt