It looks like a case of rectal prolapse or high grade piles. In either case surgery should be the solution. You need to consult a surgeon in person so that he can diagnose it and advice proper management
Next Steps
Consult a good general surgeon or a surgical gastroenterologist
Health Tips
Avoid constipation, prolonged sitting on commode, do not strain for stools