The ConfigFileMigrator.sh must be run in Terminal, not by double-clicking on the shell script itself.

Launch Terminal and run the command as
./ConfigFileMigrator.sh. Before running the script, ensure that you have set full Read & Write permissions to the ConfigFileMigrator folder.