exec('command', {'shell':'powershell.exe'}, (error, stdout, stderr) => { ... } fails with the following error:
/d : The term '/d' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again.
At line:1 char:1
+ /d /s /c command
+ ~~
+ CategoryInfo : ObjectNotFound: (/d:String) [], CommandNotFoundException
+ FullyQualifiedErrorId : CommandNotFoundException
What is prepending the /d /s /c and how can it be prevented?