Skip to content

Write-Green

Writes text in a green foreground color

param([string]$text = "")

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

write-host -foregroundColor green "$text"
exit 0 # success

Specifies the text to write

An interactive directory of PowerShell scripts.