• Thanks for your help. I haven't had time to try out your changes yet, but I did find another article that I think will be helpful to me as well from DatabaseJournal.com:

    Microsoft Windows PowerShell and SQL Server 2005 SMO – Part 9

    By Muthusamy Anantha Kumar aka The MAK

    Using PowerShell and SMO to Generate an SQL Server Script

    http://www.databasejournal.com/features/mssql/article.php/3700711