Write a warning message.
Snap-In: Microsoft.PowerShell.Utility
Syntax:
Write-Warning
[-Message] <String> [-Verbose] [-Debug] [-ErrorAction <ActionPreference>] [-ErrorVariable <String>] [-OutVariable <String>] [-OutBuffer <Int32>]
Description:
The Write-Warning Cmdlet allows the script author to create a warning message that may be displayed to the user. This message is sent directly to the host and allows for direct notification.