I understand now… but what is it? Well lets take a look at example…

Normally it would take lots of code to achieve something similar. But with Write-Color it's quite easy. Each one is single line of code:

Clear-Host . "C:\Support\Scripts\Includes\Write-Color.ps1" # Include Write-Color Write-Color "[i] ", "Parameter in configuration of ", "EmailParameters.EmailFrom", " exists." -Color White, White, Green, White -ShowTime Write-Color "[i] ", "Parameter in configuration of ", "EmailParameters.EmailTo", " exists." -Color White, White, Green, White -ShowTime

Now how about writing a command and then after it's done, and depending if it's Success or Failure color it as such?

Clear-Host . "C:\Support\Scripts\Includes\Write-Color.ps1" # Include Write-Color Write-Color "[i] ", "I will send email soon...", "Get ready.." -Color White Write-Color "[i] ", "Sending email...." -Color White, White -NoNewLine <# Do Something.... #> if ($true) { Write-Color -Text "OK" -Color Green }

Isn't that easy? There are far more possibilities… so go ahead and get Write-Color.ps1