It will often be easiest to simply recreate your model in OpenMx or to use umx’s [5] umxRAM function. This will also lead to to nicer code, taking advantage of OpenMx’s features.
For automated translation of lavaan syntax into OpenMx, metaSEM [6] provides the lavaan2RAM [7] function.