Split execCommanActin() so that execCommandActionCore() can be used from other points.