Mfgsys backup Blank Title 105971

How do I create scripts to run proenv and backup or restore the mfgsys files? Running SQL but have UD tables I need to back the schemas up for.