If the command is an IR command you could go into myDatabase and extend the command length for any given IR command such that it sends for 'x' number of milliseconds when pressed. Each function has a 'duration' that can be overriden to any number of milliseconds you need.
If the command is script related:
Put script into the button that turns it into a toggle that calls a function. The function will then repeat your command when in the on state and will do nothing when in the off state. The script example below is a quick and dirty and would require a little bit of additional work to 'get it working'.
Activity Script var PushMe = "Dont"; function HoldButton(Action) { // Code to hold down or repeat your button command }