I am trying to figure out how to eliminate line breaks when using add-content
echo $server \"Uptime: \" $uptime.days \", Days\" $uptime.hours \", Hours\" $up
how about
[IO.File]::AppendAllText($testfile,"abc",[System.Text.Encoding]::UTF8)