How to convert shellcode binary to executable

If you have the raw shellcode binary, but you’d like to run it as an executable on Windows, you can convert it to an EXE file:

shellcode2exec.py /path/to/raw.bin