Skip to content

Write-Red

Writes text in a red foreground color

param([string]$text = "")

if ($text -eq "" ) { $text = read-host "Enter the text to write" }

write-host -foregroundcolor red "$text"
exit 0 # success

Specifies the text to write

An interactive directory of PowerShell scripts.