Everyone is late occasionally whether due to car trouble, weather, or some other unavoidable factor. Chronic lateness is a different issue. Even if the individual is an exempt employee, or the business isn't contingent on their being at work at a specific moment, their tardiness can impact morale and productivity. There are some people who will push the envelope and see how much they can get away with. The issue isn't getting their work done. If that were the case, you'd be having a different conversation. The issue is people are expected to be at work at a set time. If there's a good reason for the tardiness try to be flexible and find a solution. If there isn't an acceptable reason insist on timeliness and hint at future actions.
This script can be modified to: