Repository: vscode
Issue: Quoting issue with command sent to the terminal
Labels: bug,confirmation-pending,terminal-input

Type: <b>Bug</b>

<!-- Please fill in all XXX markers -->
# Behaviour
```C++
PS C:\787N\git\lea_fw>  c:\Program Files\Python310\python.exe c:\Users\GARRGANG\.vscode\extensions\ms-python.debugpy-2024.0.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher 62738 -- "C:\787N\git\lea_fw\sel787\releases\787N_Release_Build.py" --no-debug X 018 
c:\Program : The term 'c:\Program' 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:2
+  c:\Program Files\Python310\python.exe c:\Users\GARRGANG\.vscode\exte ...
+  ~~~~~~~~~~
    + CategoryInfo          : ObjectNotFound: (c:\Program:String) [], CommandNotFoundException
    + FullyQualifiedErrorId : CommandNotFoundException
```
## Expected vs. Actual

It runs the debugger.

Actual throws an error because the windows program, is unable to deal with spaces in folder paths. as is standard in window systems.

## Steps to reproduce:

1. Install python in program files (c drive)
2. install python extension for vs  code.
3. attempt to debug a python using the python interpreter installed in C:\Program Files\PythonXX
4. It throws the error.



Extension version: 2024.2.1
VS Code version: Code 1.85.1 (0ee08df0cf4527e40edc9aa28f4b5bd38bbff2b2, 2023-12-13T09:49:37.021Z)
OS version: Windows_NT x64 10.0.22631
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Xeon(R) Gold 5315Y CPU @ 3.20GHz (4 x 3192)|
|GPU Status|2d_canvas: unavailable_software<br>canvas_oop_rasterization: disabled_off<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: disabled_software<br>multiple_raster_threads: enabled_on<br>opengl: disabled_off<br>rasterization: disabled_software<br>raw_draw: disabled_off_ok<br>video_decode: disabled_software<br>video_encode: disabled_software<br>vulkan: disabled_off<br>webgl: unavailable_software<br>webgl2: unavailable_software<br>webgpu: unavailable_software|
|Load (avg)|undefined|
|Memory (System)|8.00GB (1.87GB free)|
|Process Argv|. --crash-reporter-id 67d0f074-3f1d-453b-b1f9-b49260857acf|
|Screen Reader|no|
|VM|100%|
</details><details>
<summary>A/B Experiments</summary>

```
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805:30301674
binariesv615:30325510
vsaa593:30376534
py29gd2263:31024239
c4g48928:30535728
azure-dev_surveyone:30548225
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementsc:30995553
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
cppperfnew:31000557
dsvsc020:30976470
pythonait:31006305
jchc7451:31067544
chatpanelt:31048053
dsvsc021:30996838
9c06g630:31013171
a69g1124:31058053
dvdeprecation:31068756
pythonprt:31056678
dwnewjupytercf:31046870
26j00206:31048877

```

</details>

<!-- generated by issue reporter -->