Add raw buildCommand method implementation