DHSendMIDI is a simple tool for sending MIDI messages from a command line
There’s no prebuilt downloads just yet (I’ll get to that soon when it’s ready for general use)
Note it uses SnoizeMIDI from a submodule, so clone recursively:
git clone --recursive git://github.com/DouglasHeriot/DHSendMIDI.git
DHSendMIDI has a BSD-style license. See the file LICENSE.md