First, put the commands in a text file.
Then you run the command like this:
config-pin -f path-to-file
Put the above command in your .profile, which is in your home directory.
You could also put in a list of individual commands like you are attempting and it will work.
Try
config-pin -h
for complete usage information.
Regards,