I'm working on a series of posts to walk through how to setup an environment from scratch using free tools to get your databases under source control.

If you already have an environment setup with PowerShell, SMO, & Subversion you can go ahead and download the PowerShell script from here and get started.