# Run javascript .js file using power shell activity

**URL:** <https://forum.uipath.com/t/run-javascript-js-file-using-power-shell-activity/848330>\
**Category:** Activities\
**Tags:** question, studio, system, activities\
**Created:** [January 31, 2025, 8:58am UTC](https://forum.uipath.com/t/run-javascript-js-file-using-power-shell-activity/848330 "2025-01-31T08:58:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sagar\_Prakash\_Choudhari](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sagar_prakash_choudhari/32/401050_2.png) [@Sagar\_Prakash\_Choudhari](https://forum.uipath.com/u/Sagar_Prakash_Choudhari)\
**Post date:** [January 31, 2025, 8:58am UTC](https://forum.uipath.com/t/run-javascript-js-file-using-power-shell-activity/848330/1 "2025-01-31T08:58:58Z")

</div>

Hi Folks,

Does anyone knows how to run .js file using invoke powershell activity as i’m trying it by passing file name but getting an error “Invoke Power Shell: The term ‘console.log(“Hello from JavaScript via UiPath!”);’ is not recognized as a name of a cmdlet, function, script file, or executable program.  
Check the spelling of the name, or if a path was included, verify that the path is correct and try again.” Please help me to done this.

in my .js file i have written “console.log(“Hello from JavaScript via UiPath!”);”

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [January 31, 2025, 9:03am UTC](https://forum.uipath.com/t/run-javascript-js-file-using-power-shell-activity/848330/2 "2025-01-31T09:03:38Z")

</div>

@Sagar_Prakash_Choudhari

may I knwo why you want to run from powershell when you have invoke js?

also to run js you need a ide like node.js or browser dev tools etc…I am not sure if you have the setup…if you have it then there are node coommands that you cna use to run js from terminal

cheers

---

<div class="post-metadata">

**Author:** ![Sagar\_Prakash\_Choudhari](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/sagar_prakash_choudhari/32/401050_2.png) [@Sagar\_Prakash\_Choudhari](https://forum.uipath.com/u/Sagar_Prakash_Choudhari)\
**Post date:** [January 31, 2025, 9:07am UTC](https://forum.uipath.com/t/run-javascript-js-file-using-power-shell-activity/848330/3 "2025-01-31T09:07:54Z")

</div>

i have checked and find inject js activity only. so are you talking about inject js or any other activity. i have installed node.js setup but not sure about the exact activity name to run js file

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [January 31, 2025, 9:18am UTC](https://forum.uipath.com/t/run-javascript-js-file-using-power-shell-activity/848330/4 "2025-01-31T09:18:49Z")

</div>

> [@Sagar\_Prakash\_Choudhari](#):
>
> how to run .js file using invoke powershell activity

when running/calling/executing a Javascript script in Powershell, there will be an overall goal to get motivated for this. So let us know what finally is aimed to get done. Thanks for your support.

---

<div class="post-metadata">

**Author:** ![Anil\_G](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/anil_g/32/524291_2.png) [@Anil\_G](https://forum.uipath.com/u/Anil_G)\
**Post date:** [January 31, 2025, 10:16am UTC](https://forum.uipath.com/t/run-javascript-js-file-using-power-shell-activity/848330/5 "2025-01-31T10:16:34Z")

</div>

@Sagar_Prakash_Choudhari

yes inject js is what I am talking about which can run on the browser which ever is attached

cheers
