Please check if this KB helps for this issue,
"An error occurred while invoking external command : '%(0)s'" error seen deploying vCenter Server Ap...