Finished windows script

Not dynamic, needs improvement but works