Functionality to call external command

Code and tests to call the external command
Run through 'perltidy -pbp'

Standardise the code layout