The court judge the tenant to do the thing at a certain time to not affect others.
I think you can compain to the landlord and HOA first, if not solved, ask the tenant to call police when it happens (hope the police can get on the scene fast enough to get evidance)