PowerTip: Ensure Compliance with PowerShell Best Practices

Summary: Learn how to force Windows PowerShell to comply with basic best practices.

Hey, Scripting Guy! Question Is there an easy way for me to help Windows PowerShell comply with basic best practices?

Hey, Scripting Guy! Answer Use the Set-StrictMode –Version Latest command to ensure that you cannot reference things such as
          uninitialized variables and non-existent properties of an object:

 Set-StrictMode -Version latest