You should add the appropriate settings for your environment before running the program.

<?xml version="1.0" encoding="utf-8"?>
<Settings>
<ShellUri>http://schemas.microsoft.com/powershell/Microsoft.Exchange</ShellUri>
<ServerUri>https://outlook.office365.com/powershell-liveid/</ServerUri>
<AutodiscoverUrl>henry@hbuckle.onmicrosoft.com</AutodiscoverUrl>
<ExchangeServiceVersion>Exchange2013</ExchangeServiceVersion>
<UseDefaultCredentials>False</UseDefaultCredentials>
</Settings>