title: Can't run this simple .exe file with this Windows Powershell
body: <p>I'm a complete newbie to coding, so I don't understand most of the similar posts on this forum.</p>
  
  <p>I'm doing a simple C programming course, and I need to run a notepad++ file from the Powershell. The file only contains this:</p>
  
  <pre><code>#include &lt;stdio.h&gt; 
  
   int main()
    {
      int num = 931;
  
      printf("The number 'num' is %d\n", num);
      return 0; 
  }   
  </code></pre>
  
  <p>I called the file: Variables.c then I put this into the Powershell:</p>
  
  <pre><code>PS C:\Users\Raven\Desktop\C Programming&gt; gcc Variables.c -o Variables.exe 
  </code></pre>
  
  <p>Followed by:</p>
  
  <pre><code>PS C:\Users\Raven\Desktop\C Programming&gt; Variables.exe
  </code></pre>
  
  <p>I then get the following error:</p>
  
  <pre><code>Variables.exe : The term 'Variables.exe' is not recognized as the name of a cmdlet, funct ion, script file, or operable program. Check the spelling of the name, or if a path was i ncluded, verify that the path is correct and try again. At line:1 char:1
  + Variables.exe
  + ~~~~~~~~~~~~~
      + CategoryInfo          : ObjectNotFound: (Variables.exe:String) [], CommandNotFound     Exception
      + FullyQualifiedErrorId : CommandNotFoundException
  </code></pre>
  
  <p>What is going on here??</p>
  
  <p>Many thanks in advance!</p>