diff --git a/bin/npm.ps1 b/bin/npm.ps1 index 04a1fd478ef9d..be114a720c80d 100644 --- a/bin/npm.ps1 +++ b/bin/npm.ps1 @@ -24,9 +24,9 @@ if (Test-Path $NPM_PREFIX_NPM_CLI_JS) { # Support pipeline input if ($MyInvocation.ExpectingInput) { - $input | & $NODE_EXE $NPM_CLI_JS $args + $input | & $NODE_EXE $NPM_CLI_JS @args } else { - & $NODE_EXE $NPM_CLI_JS $args + & $NODE_EXE $NPM_CLI_JS @args } exit $LASTEXITCODE diff --git a/bin/npx.ps1 b/bin/npx.ps1 index 28dae51b22ca9..139c40a104d27 100644 --- a/bin/npx.ps1 +++ b/bin/npx.ps1 @@ -24,9 +24,9 @@ if (Test-Path $NPM_PREFIX_NPX_CLI_JS) { # Support pipeline input if ($MyInvocation.ExpectingInput) { - $input | & $NODE_EXE $NPX_CLI_JS $args + $input | & $NODE_EXE $NPX_CLI_JS @args } else { - & $NODE_EXE $NPX_CLI_JS $args + & $NODE_EXE $NPX_CLI_JS @args } exit $LASTEXITCODE