Extract CommandExecution from Session