Use CrmServiceClient constructors to connect to Microsoft Dataverse
Use the various constructors to create an instance of the CrmServiceClient class to connect to Dataverse. More information: CrmServiceClient Constructors
The connection string constructor is the most easy, convenient way to get an instance of the CrmServiceClient class. More information: Use connection strings in XRM tooling to connect to Dataverse
See also
Use XRM Tooling Windows PowerShell Cmdlets to connect to Dataverse