powershell open text file and write code example Example: powershell output text file Out-File fileName