Currently, I\'m Using the Connect-PnPOnline in a Powershell script:
Connect-PnPOnline -ClientId $tenant_client_id -ClientSecret $tenant_client_secret -Url $Tenant