Check out this great articles
http://www.lazywinadmin.com/2015/03/standard-and-advanced-powershell.html
https://technet.microsoft.com/en-us/magazine/hh360993.aspx
https://github.com/PoshCode/PowerShellPracticeAndStyle