refactor based on feedback

* writeFileCommands accepts OSType and generates files based on OS
* replaced AddPSScripts with AddSAcripts. Proper userdata is generated by RenderWin