I was actualy not aware of cabmame, so i cannot advice you on which one is best. Both should work with command line. The easiest thing is the rename the cabmame.exe/mameuifx.exe to mame.exe, and the command lines are exactly like mame. If you already have a mame with your controls configured, you can copy the folder ./cfg/ to the Cabmame/mameuifx folder.