powershell output text file

Shell
Out-File fileName
Source

Also in Shell: