Also, if you take her to where she had an accident in the house and scold her, you're not teaching her that going in the house is bad- you're teaching her that going to the bathroom at all is bad. They don't make associations like that- and they definitely don't associate you throwing the poop outside with going outside.
You've only had her for two weeks... it takes time. Be patient and consistent. She needs to go out way more frequently than every two hours, and she needs to stay out until she goes- no matter what.
Have you had her checked out by a vet yet?