Warm the spices, garlic and onion flakes in the melted butter/ghee, either in a small frying pan or by using the sauté function on the Instant Pot.
Add the rice and stir to coat in the butter/ghee/oil in the Instant Pot.
Add the hot stock and close the lid. Set to seal and cook on High Pressure for 9 minutes.
As soon as Instant Pot finishes cooking time, set a three minute timer and leave to rest whilst still under pressure.
When timer goes off, release pressure and set a four minute timer. Leave to rest.
When second timer rings, remove lid and fork through the grains to fluff up the rice before serving.