#foreach ($databaseName in $databaseNames) USE MASTER ; DROP DATABASE $databaseName ; CREATE DATABASE $databaseName ; #end