With PowerShell and SQL Server Management Objects (SMO), you can create powerful scripts to document and manage your SQL Server instances.