[BZ-1044577] implement CommandBasedWorkingMemoryEntryPoint
(cherry picked from commit 39f393ca2ef45507b45282fe642c058e015c6b40)