I created sample command in Drush.
I put it to sites/all/drush.
I am on my site root and calling this command works ok. But when I try to call any Drupal function in drush_MY_COMMAND function I am getting:
Error: Call to undefined function
Could someone give me any hint how to solve this issue?