I gave the presentation below at a MoodleMoot several years ago. There are probably many ways to do this. Perhaps you can learn from what I am sharing.
Forum
Install Moodle Sandbox as an application on Windows desktop
This discussion has been locked so you can no longer reply to it.