Using PSScriptAnalyzer to optimize your PowerShell scripts

I use Visual Studio Code for writing PowerShell scripts, which makes formatting and writing so much easier. Even though it shows you things that you shouldn't do, for example using aliases, you can get even more tips and hints to make your code even better. This blog post will show you how to use the PSScriptAnalyzer module which can give you some additional hints that Visual Studio Code doesn't show you.

How to make your PowerShell scripts look better

When I started writing my first PowerShell scripts... They didn't look that good, it was PowerShell 2.0, of course, and I was just a beginner 🙂 I'm getting better at it, and the newer versions of PowerShell (And Visual Studio Code) have a few nice formatting tricks. This blog post will show you a few ways to make your scripts look better and, more importantly... A lot more readable!