SERVER-10026 migrate text cmd to use query exec