added additional parameter mask for debugCommad function
added parameter captureFlags.
std::wstring debugCommand(const std::wstring &command, bool suppressOutput = false, const OutputFlagsSet& captureFlags = OutputFlag::Normal);
If we need to capture error message we can call it:
debugCommand(commandStr, true, OutputFlag::Normal|OutputFlag::Warning|OutputFlag::Error);