Friday 1 January 2016

Happy New Year with Random Colors

$colors =
@("DarkCyan","Green","Cyan","Red","Magenta","Yellow")

    $message =
    "Learn From Yesterday,
    Live For Today,
    Hope For Tomorrow.
    Happy New Year"

    for($i=0;$i -lt $message.length; $i++)
    {

    Write-Host -ForegroundColor (Get-Random -inputObject $colors) -NoNewLine $message[$i]
   
    }

    Write-Host