Transference of consciousness or programmed? because both pose different challenges.
Edit: programming an adult mentality into a machine has proven difficult because humans are heavily influenced by our childhood development. I assume we could program a childlike AI and then when it reaches a more adult mentality put it in a child-resembling machine.
Then you get into some weird ethical stuff about how to treat an AI in that state: whether or not it will try to fulfill its apparent role of a child, or if it will try to assert its adulthood despite appearance (or an unforeseen third option).
It’s definitely worth noting: This hypothetical scenario if replicated in reality would also border on some very dangerously pedophilic dogmas of treating children older than they are, based on how they emulate adults.