Adding the PerformRequestedCommand method to the cpp project