The Probability $P_{[m]}$ that exactly $m$ among the $N$ events $A_1,\dots,A_N$ occur simultaneously
Define $B_{m,N}:=\left\{\omega,\sum_{j=1}^N\mathbf 1_{A_j}(\omega)=m\right\}$ and denote $[N]:=\{1,\dots,N\}$ and $|J|$ the cardinal of a subset of $[N]$. We first use pointwise equalities of indicator functions. We have, using at the second step the pointwise equality which leads to the inclusion exclusion formula,
\begin{align}
\mathbf 1\left(B_{m,N}\right)&=\sum_{\substack{J\subset [N]\\
|J|=m}}\mathbf 1\left(\bigcap_{j\in J}A_j\right)\cdot \left(1-\mathbf 1\left(\bigcup_{j\in J^c}A_j\right)\right)\\
&=\sum_{\substack{J\subset [N]\\
|J|=m}}\mathbf 1\left(\bigcap_{j\in J}A_j\right)\cdot \left(1-
\sum_{l=1}^{N-m}(-1)^{l-1}\sum_{\substack{K\subset [N]\setminus J\\
|K|=l}}\mathbf 1\left(\bigcap_{k\in K}A_k\right)\right)\\
&=\sum_{\substack{J\subset [N]\\
|J|=m}}\mathbf 1\left(\bigcap_{j\in J}A_j\right)
+\sum_{l=1}^{N-m}(-1)^l\sum_{\substack{J\subset [N]\\
|J|=m}}\sum_{\substack{K\subset [N]\setminus J\\
|K|=l}}\mathbf 1\left(\bigcap_{j\in J\cup K}A_j\right).
\end{align}
Now, we take expectations: the first term is $S_m$. For $1\leqslant l\leqslant N-m$, notice that a subset of $l+m$ elements of $[N]$ can be written in $\binom{m+l}m$ ways as the union of two disjoint elements of
cardinality $m$ and $l$ respectively, hence
$$\sum_{\substack{J\subset [N]\\
|J|=m}}\sum_{\substack{K\subset [N]\setminus J\\
|K|=l}}\mathbb P\left(\bigcap_{j\in J\cup K}A_j\right)=\binom{m+l}mS_{m+l}.$$