Since your daughter does not cry every night of the week, look for contrasts between those nights and the ones in which she wakes and cries. Try teaching her what to do when she wakes up. Be creative. Provide her with a flashlight so she can look at books in bed, or offer her a wind-up toy in bed that plays soft music.
Perhaps a sippy cup of water would be helpful. She could also bring a favorite stuffed toy or blanket with her to bed. Whatever idea you suggest, just make sure that it does not require her to leave her bed.
By teaching her coping practices that she can use rather than relying on you for comfort, she is less likely to cry and scream for hours. The book
“Sleep Fairy” is very effective with helping children stay in bed and pacify themselves.