Fix MSBuildCommand and compilation error in BatchCommnad
Add commands factory.

some refactors and fixes, fixed spelling error in test resources folder