High court dismisses appeal against planning enforcement notice