• I ran like this

    sqlcmd -S SERVERNAME -d Master -i sql_query.bat -o output_file.txt

    It is working but just I need to change the output format to understand the query result just like in ssms