The script is attached to the gist.
You need Python 2.7.14 to run the script.
If you don't know what Python is, or simply don't want to install it, use the EXE version.
SFPac is very old and works only on Sonic Forces. I recommend using HedgeArcPack instead. It has better performance and supports more games.