@David-Barrett-MS
This script used to work great for me. Now I am getting the following error:
[GetTokenWithKey] Failed to obtain OAuth token: The remote server returned an error: (404)
Any Idea what is happening? I checked my application and everything still looks correct.