I normally do this using Windows Bash: GitHub - microsoft/WSL: Issues found on WSL. It works well, but you should make sure that your target Linux distribution is close to the one used under Windows Bash (as a general remark OCaml does not support the scenario “compile on Linux distribution X, run in Linux distribution Y”).