Essential maintenance will close a section of the A9 for five nights.