3

We want to create PowerShell script that will call javascript document, stored on our server. PowerShell script would be started on Task Scheduler at some time we define. Javascript document is about checking some values in table we have on page.

I presume this is possible, but I ask, just to be sure as we found none examples.
If anyone can share example or suggestion where to check it.

I don't ask for solution or "How to do it", just suggestion if this is possible and link to examples would be really appreciated.

Thanks.

2 Answers 2

5

If your talking about Node.js not JavaScript then you can use the node command to run a node.js program. First you must download Node.JS if you don't have it already (https://nodejs.org). This is the syntax for the node command:

node path/to/javascript/file

As long as the program doesn't use any web browser feature such as alert() your program will work.

Sign up to request clarification or add additional context in comments.

Comments

-2

A quick google can always point you in the right direction. These are the first two results I found.

https://devcentral.f5.com/articles/powershell-abcs-j-is-for-javascript

Execute javascript trough Internet Explorer's com interface using PowerShell

Without more information people on this site wont be able to help you much

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.