# Is it possible to run a custom external Javascript file from Postman pre-script

**URL:** <https://community.postman.com/t/is-it-possible-to-run-a-custom-external-javascript-file-from-postman-pre-script/23564>\
**Category:** Help Hub\
**Tags:** variables, collections, file, javascript, local-files\
**Created:** [May 9, 2021, 9:32am UTC](https://community.postman.com/t/is-it-possible-to-run-a-custom-external-javascript-file-from-postman-pre-script/23564 "2021-05-09T09:32:04Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![monish.narendra](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@monish.narendra](https://community.postman.com/u/monish.narendra)\
**Post date:** [May 9, 2021, 9:32am UTC](https://community.postman.com/t/is-it-possible-to-run-a-custom-external-javascript-file-from-postman-pre-script/23564/1 "2021-05-09T09:32:04Z")

</div>

Is it possible to run a custom external Javascript file from Postman pre-script.

I have a JavaScript file (.js). Is there anyway of importing and running that JavaScript file (.js) from postman in pre-script.

---

<div class="post-metadata">

**Author:** ![neilstudd](https://sea2.discourse-cdn.com/getpostman/user_avatar/community.postman.com/neilstudd/32/8213_2.png) [@neilstudd](https://community.postman.com/u/neilstudd)\
**Post date:** [May 9, 2021, 11:53am UTC](https://community.postman.com/t/is-it-possible-to-run-a-custom-external-javascript-file-from-postman-pre-script/23564/2 "2021-05-09T11:53:07Z")

</div>

Hi @monish.narendra,

There are some tips for embedding external code, by loading them in through a variable, in this topic: [Adding external libraries to postman](https://community.postman.com/t/adding-external-libraries-to-postman/1971)

Can you see whether that topic allows you to proceed?
