I would just ignore him. Walk around like you don't hear him. My almost 9 year old does this to my husband and we will not respond until he is kind. I have no idea why he thinks he can sit in a room and scream, "DAD!" at the top of his lungs and get a polite reply.
he wouldn't 'tell' me to do it again that's for sure
Some kids are slower learners. 