How to use NodeJS to call CMD command on Windows server?

  node.js, question
  1. Describe your problem

As shown in the topic, we nodejs are deployed on Windows servers. Now we need to call CMD commands to complete some operations. What should we do? What are the references?

Thank you very much.

  1. Attach relevant codes

  2. Post error message

  3. Attach relevant screenshots

  4. What methods have been tried and still have not been solved (with relevant links attached)