The message "There was a problem sending a command to a program" usually means that it was unable to connect to MS Office applications (for example, Excel, Word or Access database, etc.) when sending them DDE (Dynamic Data Exchange) commands.