PowerShell with Style
Let’s continue our exploration of ANSI escape sequences and how to incorporate color or formatting into our PowerShell scripting. If you missed them, I encourage you to read the previous two articles in this series. In Windows PowerShell, you need to use the native ANSI escape sequences. Hopefully, the syntax doesn’t intimidate you. Like everything in PowerShell, the more you use it, the easier it will become. If you are running PowerShell 7, it becomes even easier. That’s what I want to talk about today. You’ll need at least PowerShell version 7.2.0, so if you haven’t updated your desktop in a while, now is a good time. Ready? Let’s see how to script with PSStyle.
PSStyle
PowerShell 7.2 introduced a new variable called PSStyle
.
Want to read the full issue?