Skeleton of command execution function