title: How install python 3 via bash script on Windows
body: <p>I am new to shell scripting and what I basically want is to write a script that installs all the software needed for my project to work on a Windows machine without asking the user any additional input aside from running the script itself.</p>
  <p>For instance, I want to check if <em>python3</em> and <em>conda</em> are installed and if not install them without asking the user for additional input.</p>
  <p>For <em>conda</em> I was able to figure out the next couple of lines:</p>
  <pre><code>if ! command -v conda &amp;&gt; /dev/null
  then
      echo &quot;conda could not be found&quot;
      echo &quot;installing conda...&quot;
      MINICONDA_INSTALLER_SCRIPT=Miniconda3-latest-Windows-x86_64.exe
      curl --location -C - --output &quot;$MINICONDA_INSTALLER_SCRIPT&quot; &quot;https://repo.continuum.io/miniconda/$MINICONDA_INSTALLER_SCRIPT&quot;
      start /wait &quot;&quot;  ./$MINICONDA_INSTALLER_SCRIPT /InstallationType=JustMe /RegisterPython=0 /S /C=%UserProfile%\Miniconda3
  fi
  </code></pre>
  <p>The code above does not work completely, but I am sure I will be able to figure it out. It is just proof of concept.
  I want to have something similar for <em>python3</em> as well. That is, the script should download and install <em>python3</em> in silent mode with default settings. On Linux I would just use something amount the lines:</p>
  <pre><code>sudo apt-get install python3
  </code></pre>
  <p>but on Windows, I don't know how to do that. Is there a way to do that in the first place?</p>