$text = "Hello","World"
[IO.File]::AppendAllLines(
"C:\test.txt",
$text,
[Text.Encoding]::Default
)
And i get error:
'Cannot find an overload for "AppendAllLines" and the argument count: "3".'
How to fix it? WriteAllLines works great with same parameters, but what's wrong with this method?