A peak time road closure aimed at improving pupil safety outside an Aberdeenshire primary school will be formally introduced later this month.