I want to add song files to iTunes via the command line.
open -a iTunes -g song.mp3
does exactly this. - However it starts playing the song, too. Any way to avoid this?
You can use the "Automatically Add to iTunes" folder for that (see HT3832):
If iTunes is running, anything you copy into this folder will be imported into iTunes automatically (and deleted from the folder afterwards).