diff --git a/index.js b/index.js index 88a8904481..22f1170984 100644 --- a/index.js +++ b/index.js @@ -62,7 +62,7 @@ function handleArgs(command, args, options) { if (process.platform === 'win32' && path.basename(command) === 'cmd.exe') { // #116 - args.unshift('/q'); + args = [...new Set(['/q', '/d', '/s', '/c', ...args])]; } return {command, args, options, parsed};