Email Post: Optimal Control of Nonequilibrium Systems through Automatic Differentiation