Quantum mechanical theory to investigate the properties and dynamics of many-body systems in the presence of time-dependent potentials