Menu within a Menu

Welcome Forums General PowerShell Q&A Menu within a Menu

Viewing 2 reply threads
  • Author
    • #271081
      Topics: 4
      Replies: 2
      Points: 49
      Rank: Member


      Newbie here.

      I am creating a script to give our IT folks testing options but I am having difficulty showing a menu within a menu.

      If the user select’s option # 2; I would like to show the user a new menu with different options to perform. Any input is appreciated. Thank you in advance.


      • This topic was modified 2 days, 5 hours ago by PerDeSi91. Reason: Code view fix
    • #271105
      Topics: 5
      Replies: 177
      Points: 686
      Helping Hand
      Rank: Major Contributor

      I can’t read your code.  Make sure you are following directions here and re-post.

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

      If you add a Start-Sleep -Seconds 5 to either of your functions you’ll see that they’re being called.  They’re then exiting and then returning to the do-until loop.

      You need to run the loop until ($input -eq ‘q’ -or $input -eq ‘1’ -or $input -eq ‘2’)

Viewing 2 reply threads
  • You must be logged in to reply to this topic.