Programmable entanglement oscillations in a non-Markovian channel