MEDITECH DR Drop Temp Tables Factory (BETA) 

 enter list of tables, then click build script
 

 copy list of sql statements (CTRL + A, CTRL + C)