Here there is the old problem.
I know from the old problem that the work $W_v$ that I need to make a rocket fast enough to reach the escape velocity is
$$W_v= G \frac{mM}{r}$$
therefore because $$W_v=F\cdot S = G \frac{mM}{r} \rightarrow F_v=\frac{W}{S}=G \frac{mM}{rS} $$
that is the force I need to make a rocket fast enough to reach the escape velocity BUT
Do I also have to count the weight of the rocket?
If yes then the equation will be like this: $$F_f=F_g - F_v= G \frac{mM}{r^2}-G \frac{mM}{rS}=G \frac{mM}{r}\biggl(\frac{1}{r} \cdot \frac{1}{S}\biggr) = G \frac{mM}{r}(rS)^{-1} $$