Creating a zip file based on existing folders

I need a script that I can use in any path, that is, in any directory, by running it, it will convert the folders in that path separately into zip files with the same name as the folder and place them in the same directory, in short:

  1. First, check if a folder or folders are selected
  2. If not selected, consider all existing folders
  3. Convert each folder separately into a zip file with the same name as each folder
  4. Place all created zip files in the same path

I have no programming knowledge. Can anyone help me in this regard?
Is there such a script?

Thanks a lot

You can create a button with this code:

@ifsel:maxdirs=0
Select ALLDIRS
@ifsel:common
Copy ARCHIVE=single HERE