I got the solution recently,
notchFilter = designNotchPeakIIR('Response', 'notch', 'CenterFrequency', wo, 'Bandwidth', bw, 'FilterOrder', 50, "SystemObject", true, "HasScaleValues", true);
s_cleaned = notchFilter(s_cleaned);
I added those parameters and use the output as a function.