A section of a Wimborne road will be closed for five days for ‘urgent’ works.