powershell write-output to file to new file code example Example: powershell output text file Out-File fileName