updated WriteScenario() to use working Rscript.exe on Windows and only w...

...rite launchApp.* specific to platform (*.bat for Windows and *.command for Mac)