Construction of dynamical invariants for the time-dependent harmonic oscillator with a time-dependent driven force