Convert any image to icon format (.ico) with a single command. Requires ImageMagick to work (download here). Based on this answer by @geekley on StackOverflow.
Download the script or the executable and run it from the terminal with the following syntax:
.\Iconify.exe -in <path-to-image> -out <path-to-output>
The icon of the executable was made with the following command from the source folder:
.\Iconify.ps1 .\cat.jpg .\app_icon.ico