There is nothing more elegant than a system() call?
you can get the source code of mbimcli here: https://www.freedesktop.org/software/libmbim/