So you are talking about a ZTR
People really make it difficult to help them when we have no idea about what the actual machine is
Scrubby ( and I ) thought you had a garden tractor
So to get my head around what you are saying
1) you were mowing happily along then suddenly without any warning the mower just quit
2) when it quit there was no indication of any electrical power, like the fuse had bown or the battery was dead flat
3) you disconnected the battery leads and every thing worked perfectly, the mower cranked up & started then suddenly stopped again
4) this happens repeatidly
Is this what is happening ?