Most of the PowerShell scripts that I have seen over the years are relatively straightforward. They tend to use a sequence of cmdlets and various operators and parameters. However, a script consisting only of these types of elements is somewhat limited in what it can be used for. Don't get me wrong ... Microsoft has given us thousands of PowerShell cmdlets and you can use them to accomplish some impressive things. However, if you really want to use PowerShell as a programming language then it is important to know how to do PowerShell math. To give you a more concrete example, I recently saw a really cool PowerShell script that used various mathematical functions to predict system resource depletion.
↧