An adaptable generalization of Hotelling’s $T^{2}$ test in high dimension