How to get helper methods in the rake task

I wrote a helper in application.rb and was trying to use it inside a rake task. However can’t find that method?

How do I access helper methods inside any rake task?