added check to process.platform to determine OS which will add .cmd to end of script for Windwos environment