How to use JavaScript in UNIX Shell scripting?

I want to navigate through a webpage and save that page in my system local automatically. How can I do that by using JavaScript in a Unix shell script. Any suggestions are welcome!

I don't know about a Unix Shell, but Power Shell might do it. Your *.ps1 file would be on your desktop and would contain the commands "Invoke-WebRequest" and "pscp", to be followed by "Remove-Item" once the file is on your unix box. On your PC, the directory C:\Windows\System32 must contain "pscp.exe".

We have to download an updated web page several times a month. I'm not the Power Shell guru in this shop.

If you are running this under Linux, you should look at wget or curl. The point isn't that a webpage is written in Java script, its that you want to bring back web content and look through it. Either curl or wget will do that. There may be other tools as well. For example Perl and Python might have modules that will help you with this.

Basically, you don't. You discover what URL the javascript is retrieving, and retrieve that.