Hello Ray,
This is a very old thread and Exchange Management Tools did not exist by that time. The approach suggested in the thread is specifically for on-premises Exchange servers. As for Exchange Management Tools, we were not able to find an approach allowing to connect to it in a script using something similar.