Is Write-Host Bad? Exploring PowerShell Commands and Best Practices
Is write-Host Bad? It’s always been recommended to avoid using Write-Host because it outputs only to the console and not to any of the standard output streams. As of PowerShell 5.0, Write-Host is just a wrapper for Write-Information and thus outputs to the standard output streams similar to the other Write-* cmdlets. Read more on … Read more