This script allows you to do exactly the same function as the "Archive" element from Enfocus Switch with one added functionality:
remove the top folder in case of a "job folder".