SharePoint Patterns and Practices (PnP) contains a library of PowerShell commands (PnP PowerShell) that allows you to perform complex provisioning and artifact management actions towards SharePoint. The commands use CSOM and can work against both SharePoint Online as SharePoint On-Premises. Read more
https://msdn.microsoft.com/en-us/pnp_powershell/pnp-powershell-overview
https://msdn.microsoft.com/en-us/pnp_powershell/pnp-powershell-overview