title: Environment variables in Compose using Powershell with only 1 line
body: <p>I know that you can pass environment variables to docker-compose.</p>
  
  <p>docker-compose.yml</p>
  
  <pre><code>. . .
  mysql:
      image: mariadb:10.2
      ports:
       - "${DB_PORT}:3306"
  . . .
  </code></pre>
  
  <p><code>$ DB_PORT=3396 docker-compose up</code></p>
  
  <p>However this only works using bash.  I am using PowerShell and am trying to find an equivalent that is only a one line command.</p>
  
  <p><code>PS&gt; $env:DB_PORT:3306 docker-compose up</code> does not work.  Neither does 
  multiline</p>
  
  <pre><code>$env:DB_PORT=3396 `
  &gt;&gt; docker-compose -up
  </code></pre>
  
  <p>The error I get is 
  <code>Unexpected token 'docker-compose' in expression or statement.</code></p>
  
  <p>If I do it one at a time it does work...</p>
  
  <pre><code>PS&gt; $env:DB_PORT=3396
  PS&gt; docker-compose -up
  </code></pre>
  
  <p>Is there not way to do this in PowerShell when the equivalent in bash is ridiculously simple?</p>