You could just add some string concatenation to build the statements you need to run off of this:
select name, suser_sname(owner_sid) as owner, [Put your string concatenation here] AS [Statement to Run]
FROM sys.databases
where suser_sname(owner_sid) <> 'sa'
and database_id > 4
You could even run this from registered servers and get it all dumped in one go.
HTH,
Jon