Moved api metric execution commands into main shell.