Command compiler procedure for all types of command based scripts.