Try using Io.FIle class and method WriteAllText.
For example:
[io.file]::WriteAllText(“c:\test.txt”,”test”)
You’ll want [IO.File]::AppendAllText and not WriteAllText since that will override the existing file.
Technology, Politics, Businness, Entertainment