< Back

Write-Festive

Sun Jan 19, 2020 6:21 pm

NAME Write-Festive



SYNOPSIS

Write a festive message to the console





SYNTAX

Write-Festive [-Text] <String> [<CommonParameters>]





DESCRIPTION

This is a silly command that writes a colorized message to the host. The output is written the host using

Write-Host with randomly colored foreground and background colors for each letter and space.





PARAMETERS

-Text <String>

Enter a text message



Required? true

Position? 0

Default value None

Accept pipeline input? True (ByValue)

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS

System.String







OUTPUTS

None







NOTES









-------------------------- Example 1 --------------------------



PS C:\\> Write-Festive "Merry Christmas"

Merry Christmas



The output is written the host using Write-Host with randomly colored foreground and background colors for each

letter and space.

-------------------------- Example 2 --------------------------



PS C:\\> New-PSChristmasGreeting | Write-Festive

Priec????gus Ziemassv?????tkus



The actual output will be colored.



RELATED LINKS

Write-Host