title: Windows 10 Bash Shell: Run exe with arguments, return output
body: <p><strong>Can you use the bash shell in the Linux subsystem for Windows 10 to run an .exe that is a command-line program and pass arguments to it, as well as to get the output from running the command as if it was run from the Windows command prompt?</strong></p>
  
  <p>Basically, I have a Windows command-line program that I want to use through the bash shell as if it were within the ubuntu install, but I don't know how to set that up or even if it's possible.</p>
  
  <p>According to <a href="https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13284702-let-us-launch-windows-processes-from-bash?page=2&amp;per_page=20" rel="nofollow noreferrer">this Microsoft issue</a>, launching Windows processes from Bash has been supported since the Creators Update.  Does that include sending arguments?</p>
  
  <p><strong>Background</strong></p>
  
  <p>I'm using Windows 10 with the Ubuntu linux subsystem.</p>
  
  <p>In Windows, I have installed <a href="https://docs.lndo.io/" rel="nofollow noreferrer">lando</a>, which is a command-line piece of software that lets you manage web apps through docker.</p>
  
  <p>I want to use the <code>lando</code> command through the bash shell because I want to script a bunch of commands in my <code>.bashrc</code>.</p>
  
  <p>I can call lando from bash like this:</p>
  
  <p>alias lando='/mnt/c/Program¥ Files/Lando/bin/lando.exe'</p>
  
  <p>When I enter <code>lando</code> (no arguments), I get the command line help as I would expect.</p>
  
  <p>However, when I enter a command such as <code>lando info</code> in bash, the output (status of running containers) is printed to the screen, but I have to manually stop the command with CTRL+C. (In Windows cmd prompt, when I run <code>lando info</code>, it automatically returns me to the command line.)</p>
  
  <p>Moreover, when I run a command like <code>lando start</code> from bash (to start up some containers), the output that would normally be printed to the screen (when the command is run from Windows) is not output at all.</p>