Adam Listek brings us up to date on the utility of Write-Host in Powershell:
Over the years, there has been a lot of debate around the PowerShell Write Host cmdlet on whether it’s needed and when to use it. As in most cases, the answer is maybe and dependent on your needs.
To understand
Write-Host
and when to use it, let’s quickly explore the history ofWrite-Host
and learn how best to use this useful cmdlet.
Read on to learn more.