See the comments above for the command to load using avrdude. Then just enter the paths to your avrdude.exe, avrdude.conf, and hex file. This will allow you to use the bootloader to load the test code, the same way the Arduino IDE does it.
Here is a good tutorial on how to use avrdude from the command line.