vbscript: Moved creating new dynamic variable to separated function.