wswsh: Refactoring + tiny security, in case the file starts by -