Node JSPowerShell

Pass PowerShell parameter values from Node.js form

Nothing great here! Just a continuity of my previous blog post A Simple Self Request From using PowerShell and Node. So, in this blog post let me walk you through a simple steps to pass values from form to PowerShell using NODE.JS and to make this post easier below gif will help

Requirement – Receive Values from FORM and use it as PowerShell parameters! (Let’s receive two text parameters and calculate length)


Clear right? Let us move on to our actual exercise which is a demo to place an order – You plan for mongo, cosmos or SQL DB for your back end! In my case I didn’t use any 🙂

server.js

PowerShell Code

index.pug

orderConfirmation.pug

It’s time to spun our web server and enjoy the result !

Enjoy PowerShell and NODE.js!

Leave a Reply

Your email address will not be published. Required fields are marked *