Use sqlcmd cli tool Apr 3, 2021 mssql mssql-tools sqlcmd cli
Query sql server from powershell Apr 3, 2021 mssql powershell sqlcmd cli