My camera is Ixus 100 is and only have three modes (video, auto and program). I try to set a manual mode but I don't know how set it.
You are correct, there is no manual mode on your camera. CHDK overrides do not require a manual mode, but I would generally expect program to be less likely to have problems than Auto or special scene modes.
Your script looks like it should set the shutter and ISO.
How are you determining which settings the camera used? The exif can sometimes record the wrong values, but you should able to see if overrides are actually working by setting different values and seeing if the exposure changes.
Have you tried overrides from the "enhanced photo operations" menu?