title: How to pass cmdlet output as an argument to an application (.exe) without an intermediate variable?
body: <p>I have the following PS command that returns a string:</p>
  
  <pre><code>(get-date -Uformat %s).remove(10, 1).substring(5,9)
  </code></pre>
  
  <p>I want to call the application <code>myapp.exe</code> from the current directory with the result of that PS command as an argument, and I want to do it in a single line (no intermediate variable). What's the syntax for that? </p>
  
  <p>In other words, I'm looking for a Powershell equivalent for <code>$(&lt;command&gt;)</code> in bash.</p>