Using in pre-request Script

I’m using postman to test the api calls to bamboo apis. I’m trying to run the bamboo build and test the bamboo variables.
Well its working fine, but I had to go to bamboo and open the current build to check if its kicked of or not.
I tried to open the build URL in chrome browser using “” in the Pre-request Script, but it throws error “window is not defined”.
I need help with as I tried to google it and I could find any supportive article.