4.3.4 can NPC's use .commands?

I want to ask if it would be possible to allow npc’s to execute commands like .learn all lang

I have been looking high and low and cant seem to find anything. If anyone can give some insight that be great.

See how gossip npcs are scripted and see how commands are scripted, then combine.