This:
/*This command will get all Producation databases with any recovery model*/
DECLARE getdbname CURSOR FOR
SELECT nameFROM sys.databases
Where name in ('test1','test2','test3','test4','test5','test6',test7')
will get you 7 databases: test1','test2','test3','test4','test5','test6',test7'.
If this is a "Sanitized" script it does us no good.