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