Replicate Authorization Oauth2 form tab into pre request script

I’m able to generate the client_credentials token with form provided by Postman on Authorization tab but I would like to replicate this behaviour on Pre Request Script so I can retrieve the token automatically and use it on every request that then will be executed by Newman.

image

But at this point I’m getting “Invalid token audience. Provided value [xxxx-xxxx…] does not match neither tenant configuration.”