Cleanup and code to execute external commands.

Cleaning up command.dscom and adding the code to run external commands.