title: How to programmatically/remotely execute a program in EC2 Windows instance
body: <p>I'd like to launch an EC2 Windows instance, upload an EXEecutable &amp; execute it (all in <strong>an automated fashion</strong>, this is important)</p>
  
  <p>So far I was able to programmatically launch EC2 Windows instance &amp; get its parameters (password / IP), now I'd like to find a way to upload this Executable (<strong>from my Windows machine or from my other EC2 linux instance</strong>) &amp; run it.</p>
  
  <p>I thought about launching an RDP connection &amp; using a macro software to upload &amp; execute the file, but based on previous experiences this is a poor/fragile approach to say the least.</p>
  
  <p>I also thought about uploading this EXE to a server, then do something like this on Windows:</p>
  
  <pre><code>wget http://www.domain.com/my-file.exe
  </code></pre>
  
  <p>Except that Windows <em>doesn't</em> have wget!</p>
  
  <p>So my question is: <strong>is there a way to programmatically upload &amp; execute an EXEcutable in EC2 Windows instance?</strong></p>