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