Prepare command for execution before yielding