a simple and generic wrapper to load a process  and write directly on memory