modifyShader and excute my custom command

How Can I modify globe,3dtiles shaders or materials withow Changing source code,sometimes I want to create some commands(include ClearCommand,stencilCommand,colorCommand) and push that into commandList , I think I need a new Pass to save this commnads and that will excute last.