
Happy Powershell New Year 2019 !
I wish you a really Powershell New Year 2019 !!!
function Blink-Message {
param([String]$Message,[int]$Delay,[int]$Count,[ConsoleColor[]]$Colors)
$startColor = [Console]::ForegroundColor
$startLeft = [Console]::CursorLeft
$startTop = [Console]::CursorTop
$colorCount = $Colors.Length
cls
for($i = 0; $i -lt $Count; $i++) {
[Console]::CursorLeft = $startLeft
[Console]::CursorTop = $startTop
[Console]::ForegroundColor = $Colors[$($i % $colorCount)]
[Console]::WriteLine($Message)
Start-Sleep -Milliseconds $Delay
}
[Console]::ForegroundColor = $startColor
}
$HappyNewYear="|\ /|( ___ )( ____ )( ____ )|\ /| ( ( /|( ____ \|\ /| |\ /|( ____ \( ___ )( ____ )
| ) ( || ( ) || ( )|| ( )|( \ / ) | \ ( || ( \/| ) ( | ( \ / )| ( \/| ( ) || ( )|
| (___) || (___) || (____)|| (____)| \ (_) / | \ | || (__ | | _ | | \ (_) / | (__ | (___) || (____)|
| ___ || ___ || _____)| _____) \ / | (\ \) || __) | |( )| | \ / | __) | ___ || __)
| ( ) || ( ) || ( | ( ) ( | | \ || ( | || || | ) ( | ( | ( ) || (\ (
| ) ( || ) ( || ) | ) | | | ) \ || (____/\| () () | | | | (____/\| ) ( || ) \ \__
|/ \||/ \||/ |/ \_/ |/ )_)(_______/(_______) \_/ (_______/|/ \||/ \__/
_______ _______ __ _____ _ _ _
/ ___ )( __ )/ \ / ___ \ ( )( )( )
\/ ) || ( ) |\/) ) ( ( ) ) | || || |
/ )| | / | | | ( (___) | | || || |
_/ / | (/ /) | | | \____ | | || || |
/ _/ | / | | | | ) | (_)(_)(_)
( (__/\| (__) |__) (_/\____) ) _ _ _
\_______/(_______)\____/\______/ (_)(_)(_)"
Blink-Message $HappyNewYear 250 2019 Red, White, DarkRed, Green