[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 30
  • Last Modified:

powershell define starting point of script

I am fairly new to this but I am writing a script in PS, I have written all my functions (below eg) but how do I tell powershell to start with the 'menu' function which then links into all the other functions....

---

Function CreateFinanceUser
{
a load of commands specific to finance users
}

Function CreateAdminUser
{
a load of commands specific to admin users
}

Function Menu
{
a menu with choice to either create a finance or admin user
}
0
Pete
Asked:
Pete
1 Solution
 
oBdACommented:
Just call the function:
Function CreateFinanceUser
{
# a load of commands specific to finance users
}

Function CreateAdminUser
{
# a load of commands specific to admin users
}

Function Menu
{
# a menu with choice to either create a finance or admin user
}

Menu

Open in new window

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now