Is there enough fall behind the barn for you to grade that area beside the building to shed the water back that way? It doesn't look like it would take too much to keep it from standing. If you can go do that, it would be a more reliable solution than a pipe.

Sent from my SM-G781V using Tapatalk