On most interpreters, the following should work...
At the start of the page to invoke duplexing, use this command:
<</Duplex true>> setpagedevice
At the start of the page where duplexing is to be stopped, use this command:
<</Duplex false>> setpagedevice
Be aware that your existing files...