コマンドの実行 - Node.js

Node.js から Powershell コマンドを実行する

新規ファイルの作成

let pro = require('child_process');
pro.exec('type nul > test.txt');