Hi @Sivasankaran J
If you are using the MS Graph PowerShell SDK, then you should use the Connect-MgGraph cmdlet to connect to the Graph API.
Hope this helps.
If the reply is helpful, please click Accept Answer and kindly upvote it. If you have additional questions about this answer, please click Comment.