I would recommend following the advice in this thread
https://www.chameleonforums.com/threads/interacting-taming-a-baby-veiled-chameleon.157446/
Like the thread says, you have to let the chameleon associate you with food and good things. IMO this is the best way to get a chameleon used to you...
If he is afraid of you, don't go sticking a stick in his cage. It will only make things worse, trust me, I made that mistake. Let the cham come to you. Try hand feeding and everything. If you really want him out of the cage into the sun, try stringing a vine outside of his cage onto a plant so...
Let him come to the stick more on his own terms. It seems like he is scared of you and thinks you are a predator. Give him time, look up techniques for taming a cham.
(S)he also might be getting ready to lay. Veileds can reach egg laying age as early as 6 months. I would look up how to put together a laying bin and put it at the bottom of the cage.