hscript: properly change shell context