To anyone following this: I fixed it (in a way). I was able to get session-based multiplayer working by using Steam’s subsystem. made a cool guide on how to do this here. For session setup, I used eXI’s guide here.
I’m still not entirely sure how to run a listen server through the console or through code, but I did solve my original problem.