'Windows PowerShell opens the vim editor with GUI. How can I disable it?

I installed vim-console with chocolatey on Windows 11.

choco install vim-console

enter image description here

I didn't set environment variable C:\Program Files (x86)\Vim\vim82\gvim.exe anywhere. But oddly, PowerShell is finding this path!

Furthermore, If I install vim in this path(C:\Program Files (x86)\Vim\vim82\gvim.exe) with vim download website(https://www.vim.org/download.php), PowerShell opens gvim instead of vim-console!

In the Command Prompt, vim-console starts well. enter image description here

enter image description here

Why does PowerShell execute vim with the GUI anyway?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source