Using Echo instead of write-output

This topic contains 1 reply, has 2 voices, and was last updated by Profile photo of Richard Siddaway Richard Siddaway 7 months, 1 week ago.

  • Author
    Posts
  • #38375
    Profile photo of Graham Beer
    Graham Beer
    Participant

    Is it frowned upon to use echo in a script instead of write-output ?

  • #38377
    Profile photo of Richard Siddaway
    Richard Siddaway
    Moderator

    Echo is an alias of Write-Output. It is generally viewed as best practice NOT to use aliases in scripts. Always use the full cmdlet & parameter names. It doesn't affect performance and improves readability immensely.

You must be logged in to reply to this topic.