SQL Server Management Studio can help take the guesswork out of creating connection strings for PowerShell applications.
This article describes breaking changes between Microsoft ODBC Driver 18 for SQL Server and version 17. Use it when you choose a driver version, upgrade an application from version 17 to version 18, ...