Avatar of Pete
Pete
Flag for United Kingdom of Great Britain and Northern Ireland asked on

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
}
Windows OSPowershell

Avatar of undefined
Last Comment
oBdA

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
oBdA

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23