Proof (finitely generated iff surjective homomorphism)
Finitely generated $\implies$ $R^k \twoheadrightarrow M$ exists
If $M=Rm_1 + \ldots + Rm_k$, then define $$ \begin{align*} ϕ:&& R^k &\to M \\ &&(r_1, \ldots, r_k) &\mapsto r_1 m_1 + \ldots + r_k m_k, \end{align*} $$ which is a surjective $R$-module homomorphism.
$R^k\twoheadrightarrow M$ exists $\implies$ finitely generated
Let $ϕ: R^k \twoheadrightarrow M$ be a surjective homomorphism. Define $l_i = (0,\ldots,0,1,0,\ldots,0)\in R^k$ with 1 at the $i$-th position and $m_i = ϕ(l_i)$. Then $m_1, \ldots, m_k$ generate $M$ by surjectivity.