Doesn't get an output in powershell

when i do ./name.cpp in powershell it just open my sublime

first run your program in powershell using g++ < fileName >
then run ./a
like this

if ./a doesn’t work then only type a

so do i have to type g++ and ./a for every program ??

yes if you want to run the program through powershell