Skip to content

Instantly share code, notes, and snippets.

@PrateekKumarSingh
Last active March 17, 2016 13:13
Show Gist options
  • Save PrateekKumarSingh/33ce11da80acb07f8f05 to your computer and use it in GitHub Desktop.
Save PrateekKumarSingh/33ce11da80acb07f8f05 to your computer and use it in GitHub Desktop.
Function Change-BackgroundColor
{
[CmdletBinding()]
Param(
[Parameter(Position=0,ValueFromPipeline=$True)]
[String] $Color
)
PRocess{
$Host.UI.RawUI.BackgroundColor = $Color
cls
Start-Sleep -Milliseconds 500
}
}
15..5| Change-BackgroundColor
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment