powershell output to file append with data to text code example Example: powershell append to file Add-Content c:\scripts\test.txt "The End"