I know it's a bit contrived as far as making it work, but doesn't SeeSharpSnake [0] have a DOS compile option?
Hell, I'll be bold and say, if there's a worthwhile AI credit sink, it would be just adding it all properly as a bolt on or similar to NativeAOT.