Serialize ExecutionMetadata with cmd and entrypoint