Meaning of 'My friend is shouting at his dog running"
My friend is shouting at his dog running.
I think this sentence can mean one of three below according to context. I wonder whether my thinking is correct.
1.When the sentence means "My friend is shouting at his dog running so that it keeps running" :
My friend is shouting at his dog running even though it looks like his dog doesn't want to run anymore.
2.When the sentence means "My friend is shouting at his dog that is running" :
My friend is shouting at his dog running so that he(my friend) is going to sleep.
3.When the sentence means "My friend is shouting at his dog while running" :
My friend is shouting at his dog running so that it can follow him.
Regardless of the awkwardness of the original sentence, is my thinking correct that it can be one of them according to context?