To the instant pot inner pot add the ghee and set to saute mode.
Once the ghee starts melting add the carrots and saute it for a minute.
Add the milk and cook it under manual high pressure for 1 minute.
Once the pressure is released, open the lid.
Add the sugar and set to saute mode.
Mix so that the sugar coats evenly and saute till the liquid is almost evaporated ( about 6 - 8 minutes).
Continuously mash with the back of the ladle.
Add the khoya/ mawa and continue mixing till it is creamy.
Add the cardamom powder and mix well.
Remove from the instant pot and set the carrot halwa to cool.