This video walks through the steps to trigger a script using a command task in IICS.
Reference links for the Video kb.
Command Task step (informatica.com)
HOW TO: Execute the script in the command task in IICS and find the logs related (informatica.com)