Removing trailing slashes for the paths passed to the scripts to avoid the double quotes escaped issue.
Adding a ICommand interface and factory that we can use to mock Commands and avoid actually running them in unit tests.