Thank jyijyi,
I have tried and no success. It looks like that the script is too old and Amazon had changed the authentication mechanism.
InvalidRequest
The authorization mechanism you have provided is not supported. Please use AWS4-HMAC-SHA256.
If no one has the updated scripts, I will find the script in other forums.
Thanks,