Saturday, February 6, 2021

Create PowerShell Multi-Menu Tool: Part I

 

Scenario

You want to create a PowerShell tool that allows users to select functions from a menu. Additionally, you want to have multiple menus.

Big picture - We create a folder structure that allows us to run a single script to launch or menus, update our modules, and set our global variables.

File Structure

To begin, I recommend setting up a file structure like the following:

Configs - Files that your scripts / modules look to in order to know what to do.
Logs - A place for you to put created log files
Modules - A place for your modules to go
Reports - A place for created reports
Third Party Tools - A place for tools that add functionality to your modules / scripts. For example, I put the SysInternals tools in this folder so that I can reference them in my scripts.