"Add-PSSnapin Microsoft.Exchange.Management.PowerShell.SnapIn" isn't supported. If you want to control Exchange server with command, you need to open EMS and run command in it. Make sure this tool could run successfully:
If you want to connect to Exchange server remotely, you can follow this article: Connect to Exchange servers using remote PowerShell
If the response 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.