PowerShell function: Test-ConsoleColor provides a visual demonstration of the foreach scripting construct

Test-ConsoleColor is a PowerShell function that I recently wrote to provide a visual demonstration of how to loop through a series of objects in PowerShell using the foreach scripting construct, not to be confused with the ForEach-Object cmdlet.

The Test-ConsoleColor function shown in this blog article can be downloaded from my PowerShell repository on GitHub.


Leave a Reply

%d bloggers like this: