How can i programmatically trigger a Lightbox window using Drupal
I achieved this by using ajax_command_invoke(NULL, 'nameOfCustomFunction', array('select')); with the following JavaScript code:

(function($) {
  $.fn.nameOfCustomFunction = function(data) {
    alert(data);
  };
});