From Brownian Motion Formalism to Fluctuation-Induced Force in a General Fluctuating Medium