You can’t console log it in scripts as it will show as a string.
You can’t retrieve the values in scripts either.
You can only use the vault values in certain places like the request body, authentication tabs, URL, etc.
This topic relates.
Access Postman Vault from Pre-Request Script - Help - Postman Community