We propose a new method for determining the shape of the gravitational potential of the dark matter (DM) halo of the Milky Way (MW) with the galactocentric tangential velocities of a sample of hypervelocity stars (HVSs). We compute the trajectories of different samples of HVSs in a MW where the baryon distribution is axisymmetric and the DM potential either is spherical or is spheroidal or triaxial with radial-dependent axis ratios. We create ideal observed samples of HVSs with known latitudinal components of the tangential velocity, v(theta), and azimuthal component of the tangential velocity, v(theta). We determine the shape of the DM potential with the distribution of vertical bar v(theta)vertical bar when the Galactic potential is axisy...