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

Tags:

Leave a Reply

Your email address will not be published. Required fields are marked *