alone with meltdowns

Iam finding it difficult when my child has a meltdown outside,as iam on my own with her.

She runs away and screams at me and tries to hit me if i go near,but also puts herself in dangerous places at the same time.

Sometimes a meltdown can be up to an hour,and i feel so useless and stressed as she wont listen.

Any advice welcome.