Import programmatically a rhc file

Hello,

Is there any way to import programmatically a rhc file? I was trying by code or script, but I can’t find anyway. Thanks in advance.