What you need is the "PICKit2 Command Line Interface".

http://ww1.microchip.com/downloads/e...K2CMDv1-12.zip

1 click from Microcode Studio (compile and program).