THANK YOU! This was exactly what I was looking for. I also wanted to add a couple of notes.
1. When specifying the key with -k, you need to add in the '' which isn't listed in your example.
2. If you will be using this on both x86 and x64 computers, you will need to compile 2 versions. One for each architecture.