A 27-year-old man accused of breaking into a Mandurah home and bashing its elderly resident will appear in court on Sunday morning.