Mellin Transform Formula for the $L$-Function of a Cusp Form