Happy Powershell New Year 2019 !

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

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

How to whitelist website on AdBlocker?

How to whitelist website on AdBlocker?

  1. 1 Click on the AdBlock Plus icon on the top right corner of your browser
  2. 2 Click on "Enabled on this site" from the AdBlock Plus option
  3. 3 Refresh the page and start browsing the site