title: How do I run C++ program in Powershell, just like CMD?
body: <p>Like in CMD, to run a C++ program, I use the command <code>g++ filename.cpp</code>, then I run it using the command <code>a.exe</code>, which opens the output in the CMD itself. How to do such thing using a PowerShell? I am unable to open the file by simple command as <code>a.exe</code>. Am I doing it the wrong way?</p>