Work-induced constrained quantum dynamics