Using Echo instead of write-output

This topic contains 1 reply, has 2 voices, and was last updated by  Richard Siddaway 2 years, 2 months ago.

  • Author
  • #38375

    Graham Beer

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

  • #38377

    Richard Siddaway

    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.