powershell write text to file code example
Example 1: write to file powershell
Add-Content -Path <path> -Value <value>
Example 2: powershell write to file
Add-Content FilePath TextAdded
Example 3: powershell append to file
Add-Content c:\scripts\test.txt "The End"