How do I output text without a newline in PowerShell?

I want my PowerShell script to print something like this:

Enabling feature XYZ......Done

The script looks something like this:

Write-Output "Enabling feature XYZ......."
Enable-SPFeature...
Write-Output "Done"

But Write-Output always prints a new-line at the end so my output isn’t on one line. Is there a way to do this?

19 Answers
19

Leave a Comment