You need to lock you cat in the bathroom with the litter box. Two or three nights in a row should do the trick! Make sure that any previous accidents have been cleaned up with Odoban or Resolve. Cats usually do this because you have left them alone longer than usual or their litter box isn't as clean as they would like. If you don't have one already get an automatic litter box and use arm & hammer.