  Shortcuts to adiabaticity (STA) are relevant in the context of quantum
systems, particularly regarding their control when they are subjected to
time-dependent external conditions. In this paper, we investigate the
completion of a nonadiabatic evolution into a shortcut to adiabaticity for a
quantum field confined within a one-dimensional cavity containing two movable
mirrors. Expanding upon our prior research, we characterize the field's state
using two Moore functions that enables us to apply reverse engineering
techniques in constructing the STA. Regardless of the initial evolution, we
achieve a smooth extension of the Moore functions that implements the STA. This
extension facilitates the computation of the mirrors' trajectories based on the
aforementioned functions. Additionally, we draw attention to the existence of a
comparable problem within nonrelativistic quantum mechanics.
