**Step 1 — Introduce the Challenge**

1. Explain that Maximo automation scripts implement important business logic but can become complex over time.
2. Highlight that poor maintainability, inefficient coding patterns, and accumulated technical debt increase the effort required for support and enhancements.

**Step 2 — Open the Maximo Script Optimization Demo**

1. Introduce IBM Bob and the reusable **Maximo-script-optimizer** building block.
2. Select an existing Maximo automation script to demonstrate the optimization workflow.

**Step 3 — Analyze the Original Script**

1. Run the analysis and review the available code-quality metrics, maintainability indicators, performance observations, security findings, and identified issues.
2. Explain how AI-assisted analysis helps developers understand the existing implementation.

**Step 4 — Review Optimization Recommendations**

1. Show the suggested improvements.
2. Explain how the solution applies Maximo-specific coding patterns to improve readability, maintainability, and consistency.

**Step 5 — Compare the Original and Optimized Code**

1. Display both versions side by side.
2. Highlight representative changes and explain the expected benefits.
3. Distinguish between generated recommendations and improvements that have been validated through testing.

**Step 6 — Explain Validation and Deployment**

1. Describe how developers review the changes and validate the intended business behavior.
2. Explain that the optimized script is tested in an appropriate non-production environment before deployment.

**Step 7 — Summarize the Business Value**

1. Close by highlighting reduced manual code-review effort, improved maintainability, reduced technical debt, and faster Maximo development.
2. Explain how the reusable building block can be adapted to additional automation scripts and customer environments.
