Refactoring
Command
simplify handling of double promiselike results in the 'executeCommand' function