Count the Number of Lines in Multiple Text Files with PowerShell

While working on developing a PowerShell module, I was curious to find out the number of lines of code within all of the functions that comprise the module. I didn’t realise that the Measure-Object cmdlet has a Line parameter. Consequently, it is a trivial task since the module is made up of a number of text files.

MeasureObjectLines02