Index Maintenance with Ola starting from day x (7 or 9) till the end of month
I wouldn't recommend making changes directly to Ola's script for your situation.  Any customization you make to his scripts will be lost when you download a newer version sometime in the future.

Instead, create a SQL Server Agent job to run daily and put your conditional execution logic in the job step

if datepart(day,getdate()) &gt; 7 
    EXECUTE dbo.IndexOptimize