You can use a timer which lets you select “days” or not select days.
OR
I don’t know the purpose of your piston but lets say I want a piston executes daily but besides Moday 10pm to Tuesday 10 am, I would use a variable or simulated switch.
Every monday 10pm simulated switch SWITCH X turns ON (with a seperate piston)
Every Tuesday 10am simulated switch SWITCH X turns OFF
So in your original piston, you can use the status of simulates switch X as a condition:
IF motion sensor changes to active (trigger)
AND
IF SWITCH X status is OFF (condition)
the do this do that...
in this case your piston will stop workingevery monday between 10m and Tuesday 10 am… (it will execute but won’t finish the job because the condition is FALSE)
Does that make sense?