I found answer. It does happen coz application cannot been bootstraped like this. I have to run in framework environment
But, How can solve it? Is there another solution for running artisan commands or jobs in another way?
My task is to run some code every N seconds, Yes I can do that via cron jobs by using sleep. But I wanna find another solution