Simplest path may be to add: ` $accessToken = ConvertTo-SecureString -String $accessToken -AsPlainText -Force around line 85 prior to the actual connect attempt. Looks like this got missed during the other SecureString updates