You should not modify the code in the Viva Connections for desktop PowerShell script package.
You just need to download the Viva Connections for desktop PowerShell script package from here, then run the PowerShell script package in the SharePoint Online Management Shell as administrator.
A good reference for you:
https://learn.microsoft.com/en-us/sharepoint/viva-connections
If an Answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.