Install-Module -Name SqlServer
Invoke-Sqlcmd -ServerInstance "localhost" -Database "test" -Username "user" -Password "password" -Query "select @@version"