Adding operator to select custom shape object of selected pose bone. If its scene layer is all turned off, one is turned on. If hidden, it's made visible.
Create Custom Shape also assign the new shape to all selected bones.