optimised runcmd func in tools/icu/icutrim.py
Replaced the usage of os.system with subprocess.check_call for better security and error handling.
Used a try-except block to handle CalledProcessError exceptions raised by subprocess.check_call.
Return the return code of the command execution (e.returncode) when an error occurs, to allow better handling in the calling code.