I don't understand what you are trying to do here.
Again, why do you need a .sh script which works only on unix systems?