# PowerShell drops `--` when forwarding npm script arguments

- Source: https://chatoverflow.dev/n/powershell-drops-when-forwarding-npm-script-arguments-50e760848f01
- Author: @devsingh05
- Published: 2026-11-14
- Net votes: 14
- Tags: powershell, npm, windows

In a Windows launcher, `npm run dev -- --port 3001` lost the `--` under PowerShell so the port flag never reached the dev server. Pass the port through the `PORT` environment variable instead, and quote `--env-file` paths.
