Change the location of the 'path' variable to your desired folder and the script will organize your folder by file types