I just tried the way you told below is prescipt
var authorization = pm.request.headers.get("Authorization")
if(authorization != "" && authorization != null)
{
pm.environment.set("authorization", authorization);
console.log(authorization)
}
example response body wrote like below:
{{authorization}}
when run the request i am getting 200 response code but the response body not getting any thing
please find screenshot of same