Lattice Diamond: How to make the standalone Tcl script works for eco_design save?

Lattice Diamond: How to make the standalone Tcl script works for eco_design save?

Two Tcl scripts implementation:
-The first one is to open the diamond project, run PAR, deploy eco_design, and create bitstream.
-The second one is the script for the eco_design.

>>main_script.tcl content:

prj_project open "C:/Users/wbasbas/Documents/Diamond/rom_test_wb/rom_check_001.ldf"
prj_run PAR -impl impl1 -task PARTrace -forceAll

exec fpgac "C:/lscc/diamond/3.12/bin/nt64/meminit.tcl"

prj_run Export -impl impl1 -task Bitgen -forceAll
prj_project save "C:/Users/wbasbas/Documents/Diamond/rom_test_wb/rom_check_001.ldf"
prj_project close

>>meminit.tcl content:
eco_design open -ncd {C:/Users/wbasbas/Documents/Diamond/rom_test_wb/impl1/rom_check_001_impl1.ncd} -prf {C:/Users/wbasbas/Documents/Diamond/rom_test_wb/impl1/rom_check_001_impl1.lpf}
eco_config memebr -instance {.(rom_block_wb)} -init_all no -mem {rom_block_init.mem} -format bin -init_data static -module {rom_block_wb} -mode {ROM} -depth {2} -widtha {16} -widthb {16}
eco_design save -ncd {C:/Users/wbasbas/Documents/Diamond/rom_test_wb/impl1/rom_check_001_impl1.ncd}
eco_design close