The easiest way, especially for many files, is the Easy icon wizard. Read on if you want to choose the icon sizes yourself.
More details, including how to test your icon, are in Windows icons. For a macOS icon, use Icon | Generate macOS icon from image instead (see Apple Macintosh icons).
When you open an SVG file, GFIE asks for the sizes to render. Add each icon size you need (e.g. 16, 24, 32, 48 and 256). Every size becomes a separate page, rendered directly from the vector graphic, which gives crisper small icons than downscaling. Then save the document as .ico.

You can also open the SVG at a single large size and use Icon | Generate Windows icon from image as above.
Use Batch convert: on the Output tab, choose Windows icon files and click Options to select the icon sizes.