how do a make a command run on the first load of a world?

(or when a player joins a server for the first time) in 1.20.1

Continue to help post