powershell script out put to file code example Example: powershell output text file Out-File fileName