Should you distribute shell scripts (or applications embedding shell scripts/calling shell commands) for Solaris 11, you just need to define /system/xopen/xcu4 as a dependency in their IPS package and the installer will automatically do what is required for the script to work properly: