powershell write output to file code example
Example 1: powershell write to file
Add-Content FilePath TextAdded
Example 2: powershell output to file
ls | Out-File -FilePath c:\PATH\TO\FOLDER\OUTPUT.txt
Example 3: powershell output text file
Out-File fileName