Displays objects through the user feedback mechanism.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Write-Host [
[-Object] <Object>] [-NoNewline] [-Separator <Object>] [-ForegroundColor <ConsoleColor>] [-BackgroundColor <ConsoleColor>] [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
There are cmdlets used in scripts and routines that involve feedback from or show information to the user. For example, the write-progress opens a small display window of its own to show the progress of a script activity or process. The write-host Cmdlet presents a new host window and allows it to be customized. It is useful for producing diagnostics in scripts or for scripts that display data to the console rather than have it flow down the pipeline.