If you are trying to access a custom XyzComponent from a shell, you probably have public functionality. The right place for publicly accessible functionality (also accessible from shells) is at /Lib/.
XyzComponent /Controller/Component/XyzComponent.php /Lib/Xyz/Xyz.php. ( , "Component", , "XyzComponent" "Xyz".)
, "Xyz" class::$components.
App::uses('Xyz', 'Xyz'); // that ('ClassName', 'folder_under_/Lib/')
. $this->Xyz = new Xyz(); , .