@rtrouton I was able to run your script in 10.12.x and it worked well.
My passphrase had a character that caused the scripted to fail. When I
went back to the script and placed (' ') around the passphrase (minus
the parentheses), the script ran witho...