Thanks,
John
MuseScore might be able to help you: http://musescore.org
It works via the command line as well so you can easily convert many
MIDI files all at once.
The MuseScore musicXML export is very well supported so if the output
is not what you expected, manually import the MIDI file and check out
what MuseScore makes of it.