Desired State Configuration
There is some powerful functionality in the more recent versions of PowerShell, provided by something called Desired State Configuration (DSC). DSC is a management platform plugged into PowerShell, which provides some new functions and cmdlets that you can take advantage of in your scripts to enable some really cool features. As the name implies, it allows you to build configurations inside PowerShell that will provide a desired state. What do I mean by that? Well, in a basic sense, DSC makes sure that the PowerShell scripts you build will always work the same way across all of the servers where you apply them by making sure the servers themselves are configured in the same way. It is quite easy to build a script in a way that means it will work correctly on the server you are currently working on. But, if you try to roll that same script out to a different server that might reside in a different organizational unit (OU), or have different items installed...