trying to create a new-vm menu
it will create a VM based on which folder I choose from the menu
[int]$RemoteOffice= 0
while ( $RemoteOffice-lt 1 -or $RemoteOffice -gt 4 ){
Write-host "1. SF"
Write-host "2. SD"
Write-host "3. AST"
Write-host "4. Quit and exit"
[Int]$RemoteOffice= read-host "Please enter an option 1 to 4..."
}
I dont know if I need to use the switch option here
after user selects the office name
it will create VM
new-vm -Name machinename
I also need to select the hard disk from a datastore name