Thermodynamic Approach To Generating Functions And Nonequilibrium Dynamics