Open SSMS-Analyzer>>New Query Window>> Paste all your queries
select option Query>>Results to>> Results to File
or use
short cut "Result to File(ctrl+shift+F)"
or
Using Command Prompt
start>>RUN>>cmd>>
sqlcmd -E -S(Local)\InstanceName -dmaster -iC:\myQuery.txt -oC:\Output.txt
InstanceName = sqlserver instance name
C:\myQuery.txt = place all the above sqlstatments in this file
C:\Output.txt = output file