Move a sprite around an irregular shape

Looking for a way to define an irregular shape (like a race track), then move a sprite along it. Anyone know of a good way to do it?

Thanks,

Nathan.