Adding exec function

I'm trying to port a few bash scripts to gherkin.  I've got a few that exec at the end and I couldn't come up with a way of doing it besides adding a primitive function.