Fresen, Christian Ernst, Imperial colonel