run npm script from node code example
Example 1: npm run custom script
# In your package.json you defined a custom script "custom"
# You can run it using
npm run custom
Example 2: (https://docs.npmjs.com/cli/run-script)
npm run-script <command> [--silent] [-- <args>...]
alias: npm run