Pause or sequence command in script

Welcome Forums General PowerShell Q&A Pause or sequence command in script

Viewing 1 reply thread
  • Author
    Posts
    • #270724
      Participant
      Topics: 1
      Replies: 0
      Points: 12
      Rank: Member

      Hello,

      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.

    • #270727
      Participant
      Topics: 2
      Replies: 382
      Points: 523
      Helping Hand
      Rank: Major Contributor

      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.

Viewing 1 reply thread
  • You must be logged in to reply to this topic.