Don't have Telegram yet? Try it now!
https://sqldbawithabeard.com/2017/04/08/testing-sql-server-access-to-a-share-with-powershell-using-dbatools/
Testing SQL Server Access to a share with PowerShell using dbatools