Hi Swarna, Srinath (CAI - Atlanta),
I'm glad you were able to get this issue resolved and thank you for sharing your solution so that others in the community with similar questions can easily reference it! I'm adding to details to this post since we discussed this in a separate email.
The "invalid client secret" error typically occurs if the secret is invalid, expired, or has a special character in it.
You mentioned that you could successfully generate the token by modifying the sample Powershell script given in the Microsoft documentation in this link, but the same steps were not working from Postman.
This may have happened because in postman there is a dropdown option "Client Authentication" with "Send as Basic Auth header" or "Send client credentials in body". My understanding is that it should be set to "Send client credentials in body" since the authorization header is not allowed.
Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others (Opens in new window or tab)", I have reposted your solution in case you'd like to "Accept (Opens in new window or tab)" the answer.
If you have any other questions or are still running into more issues, please let me know.
Thank you again for your time and patience throughout this issue.
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.