Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

powershell define starting point of script

Posted on 2016-10-18
1
Medium Priority
?
28 Views
Last Modified: 2016-10-18
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
Comment
Question by:Pete
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 85

Accepted Solution

by:
oBdA earned 2000 total points
ID: 41848446
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

Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

When asking a question in a forum or creating documentation, screenshots are vital tools that can convey a lot more information and save you and your reader a lot of time
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

636 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question