In VSCode terminal you are running the code in a PowerShell console, not in the command prompt.
PowerShell and the default windows command line (cmd.exe) handle the arguments different and could even have a different path defined. You can try to run the same command in a separated powershell console (not inside VSCode and see what happens there).