Running AWS API script on windows power shell - Error -swis connection

Hi Everyone !

I am running a AWS API script provided in the Solarwinds Thwack link:https://thwack.solarwinds.com/product-forums/ip-address-manager-ipam/f/forum/88439/cloud---aws-only-for-now---api-integration-for-ipam

We have provided servers name and Access key & Secret key as in the script but we are getting the below error message when we run the script. can anyone please help out on this error?

PS C:\users\a_kumar_dharmaraj\Desktop> .\AWS_Script_test.ps1
start...
Get-SwisData : The server has rejected the client credentials.
At C:\users\a_kumar_dharmaraj\Desktop\AWS_Script_test.ps1:157 char:15
+ $AWS_RootID = Get-SwisData `
+ ~~~~~~~~~~~~~~
+ CategoryInfo : NotSpecified: (:) [Get-SwisData], SecurityNegotiationException
+ FullyQualifiedErrorId : System.ServiceModel.Security.SecurityNegotiationException,SwisPowerShell.GetSwisData

exit bad!

Note: Running this API script on the windows Powershell with Admin rights

Regards,

Kumar