How to supress output of shell script commands?

This is kind of a two part question but basically I have a shell script I’m running for mac. I’m not sure if this is dependent on what commands I’m using but I was wondering if there was a way to supress the output and display something else (hopefully some sort of a progress bar once I make one) until the commands finish. Any help would be appreciated and if any more details are needed I can provide them