Is there any way to write the OR in terms of $\pi_{ij}$? (Emphasis added.)
There is no single odds ratio for an $I \times J$ contingency table. As Agresti says (page 54, Categorical Data Analysis, 2nd edition)
For $I \times J$ tables, it is rarely possible to summarize association by a single number without some loss of information.
For rows $a$ and $b$ and columns $c$ and $d$, you can write the odds ratio as a generalization of the $2 \times 2$ formula:
$$\frac{\pi_{ac} \pi_{bd}}{\pi_{bc} \pi_{ad}}. $$
You can describe all such odds ratios in terms of a set of $(I-1)(J-1)$ odds ratios. For me, the simplest is to set cell $IJ$ as a reference ($b=I,d=J$ in the above) for the $(I-1)(J-1)$ combinations of rows and columns not involving either row $I$ or column $J$.
There are summary single measures of association of nominal variables in $I \times J$ tables, explained for example in Sal Mangiafico's R Handbook
. Cramér's V is frequently used; its Wikipedia page has links to other such measures.