Victor Vogelpoel

Excellence is in the details

Leave a comment

PowerShell: Measure-ScriptCode (calculating script code metrics)

In my current project for a client, me and my team are building an hefty framework in PowerShell 3. I was wondering how many lines of code and other metrics the framework script code would span. I asked Dutch PowerShell MVP Jeff Wouters ( if he knew a tool for calculating PowerShell code metrics, but he didn’t know any. Well, I spent a little time in my Christmas holiday to come up with a tool of my own: Measure-ScriptCode. It was surprisingly easy to calculate metrics.

Continue reading