#requires -version 2.0 #change the window title $host.ui.RawUI.WindowTitle="Happy Valentine's Day" #define an array of sentiments $print=@("Be mine","Hey cutie","Be my valentine","I luv u","I$([char]3)U","Love", "Romance","Kiss me","Hug me","My Girl","UR the 1","Love me tender","Luv2Luv", "Hold Me","Sweetie","Honey","HunnyBunny","$([char]3)2$([char]3)","4Ever","XXOOXX") #define the colors to use for the candy $color="Cyan","Magenta","Yellow","White","Red","DarkRed","Green" #enter a number greater than 100 for maximum impact $count=Read-Host "How many sweethearts do you want?" #create the candy elements 1..$count | foreach -begin {cls} -process { Write-Host "$(get-random $print) " -foreground (get-random $color) -nonewline } -end {write-host "`n"}