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