powershell output of command to file code example Example: powershell output text file Out-File fileName