Hey @Nona2
Welcome to the Postman community!!
This is similar to a previous question asked on a different thread - If you take a look through that you will hopefully get the details you need.
You can find a little more information about the syntax to use in the Pre-request Scripts
here: