uvtech@DESKTOP-0TQ80PO:~/frappe-bench$ code .
/mnt/c/Users/UVTech Global/AppData/Local/Programs/Microsoft VS Code/bin/code: 62: /mnt/c/Users/UVTech Global/AppData/Local/Programs/Microsoft VS Code/Code.exe: Exec format error
It seems you are trying to run vscode from within WSL which does not have the VS Code WSL extension installed
Try running this from Powershell as admin: -
code --install-extension ms-vscode-remote.remote-wsl