How to continue with code after running refresh in terminal

Hello, I was wondering when I run a command, I must add a piece of code that will run refresh in the terminal itself so it automatically changes the changes made. Is there a way to make it continue after refreshing? Like There are more code below the refresh code, is there a way to make it continue with the rest of the code after refreshing?

Can you explain a bit more what you mean? Are you trying to run multiple commands on one line? In that case, seperate each statement with a &&. For example:

cd folder && mkdir newfolder && refresh && cat file.txt