powershell put printed text onto text file code example Example: powershell append to file Add-Content c:\scripts\test.txt "The End"