Differential measurement of $\mathrm{t}\bar{\mathrm{t}}\mathrm{Z}$ production at $\sqrt{s}=13\,\mathrm{TeV}$ with the CMS experiment