dbatools is a free PowerShell module with over 300 SQL Server administration, best practice and migration commands included.