How to create and run a custom task in Phoenix? Like "rake something" in Ruby

I’m using distillery.
I’ll try that out, thx.