I am on Windows 8.1. I have an Arduino Uno kit, that I program with the help of Arduino IDE. The IDE allows me to edit my files, compile them and burn them into the Arduino memory. However, I have several different Arduino files, all for different purposes. And for what I am trying to achieve, I am not allowed to manually invoke the IDE, select a file and upload it to Arduino. Instead, I need to automate the process of choosing the correct file to upload to Arduino, and upload it automatically.
So, my question is, for a given Arduino program file, how does one upload it to Arduino programmatically, eg. through a powershell script. i.e not upload it manually by clicking the upload button in Arduino IDE.