Programmatically opening Inform projects on Windows or Linux

Is there a preferred way, on Windows or Linux, to open an Inform project programmatically? Ordinarily I would use xdg-open'' andcmd /c start’’, but of course they aren’t bundle-aware, so they treat projects like directories.