Do you ever want to Write-Output with Foreground and Background colors which you like? this is the module allows you to achieve this.

This command writes output to pipeline yet capable to give colored output to the screen. Sometimes you want to apply some colors to your output at the same time you want to send it over a pipeline which is not possible using native PowerShell cmdlets like, Write-Host and Write-Output. This advanced function allows you to achieve the same.    After writing the output the foreground and background colors will be reset.

 

 

 

PowerShell
Edit|Remove
-------------------------- EXAMPLE 1 -------------------------- 
 
    PS C:\>$P = Get-Process 
    PS C:\>Write-ColoredOutput $P 
    PS C:\>$p 
 
    Nothing surprising just behaves like Write-Output 
 
 
 
 
    -------------------------- EXAMPLE 2 -------------------------- 
 
    PS C:\>$P = Get-Process 
    PS C:\>Write-ColoredOutput $P -ForegroundColor Green 
    PS C:\>$p 
 
    The output will be written to the screen with Green foreground color 
 
 
 
 
    -------------------------- EXAMPLE 3 -------------------------- 
 
    PS C:\>$P = Get-Process 
 
    PS C:\>Write-ColoredOutput $P -BackgroundColor Green 
    PS C:\>$p 
 
    The output will be written to the screen with Green background color 
 
 
 
 
    -------------------------- EXAMPLE 4 -------------------------- 
 
    PS C:\>$P = Get-Process 
    PS C:\>Write-ColoredOutput $P -ForegroundColor Green -BackgroundColor Cyan 
    PS C:\>$p 
 
    The output will be written to the screen with Green foreground color and Cyan background color