You’re just talking about a very inefficient rocket (bad ISP).

A rocket works the same way (accelerating mass to provide thrust), just far more efficiently and in a more controlled fashion.