How to write pipeline where in single step , I want to run some commands on weekly schedule (download jar) and other commands run on every event (without any schedule)?

How to write pipeline where in single step , I want to run some commands on weekly schedule (download jar) and other commands ( execute agents) run on every event (without any schedule)?

@bradrydzewski Can you please share your inputs or any similar example for reference?