This is how we make the powder at home.
Heat a pan dry. Pour the poppy seeds on to the hot pan,
Quickly with a ladle stir well so as not to burn the seeds. The moment the seeds reach the right temperature, they start crackling. That's when you switch off the flame.
Transfer to a dry plate and allow it to cool completely.
Check out other Indian Basics for Cooking, if you are interested!