This is step by step guide how to use new .NET namespace Microsoft.Data.SqlClient with Powershell. I've tested connection string using SQL login and Windows login. This could not fit you all but might provide you some ideas.
Fresh Windows Server 2016 in my case Azure VM.
- Install .NET CORE 3.0 SDK it must be SDK