Pause or sequence command in script


I have a basic script that has just a few commands using the command line to scan some computers for vulnerabilities. The second command is supposed to create a report from that scan, but I need it to wait until the scan is complete. Is there a command let to ensure the first command completes before the second one runs? Hope that is enough info. Thanks in advance.

Can you share your script?

There are several ways to do it but without knowing what your script is doing no one can offer an appropriate solution.