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