Open source pic programmer in windows
Have you looked at piklab-prog.exe in the piklab package?  Its a CLI tool for programming.

Alternatively the PicKit 2 has a stand alone CLI tool direct from microchip.