When reciting Ziyarat al Ashura, is it necessary to pray a 2 unit prayer along with it? Or is this just something mustahhab?

It is not necessary. However the 2 Raka is recommended.