invoke rake tasks

Hello

I have script in Rails root folder like this

tasks = [some tasks...] tasks.each do |task|   fork do      Rake::Task[task].execute   end end

And get the error "Don't know how to build task". How to execute my tasks? In terminal rake task_name works correctly