Powershell/Start-JCADMU.ps1

# Check runningaslocaladmin
if (([bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")) -eq $false) {
    Write-Host 'ADMU must be ran as a local administrator..please correct & try again'
    Read-Host -Prompt "Press Enter to exit"
    exit
}

# Get script path
$scriptPath = (Split-Path -Path:($MyInvocation.MyCommand.Path))

# Load functions
. ($scriptPath + '\Start-Migration.ps1')

# Load form
$formResults = Invoke-Expression -Command:('. "' + $scriptPath + '\Form.ps1"')
# exit if form is null/ false
If ($formResults) {
    Start-Migration -inputObject:($formResults)
} Else {
    Write-Output ('Exiting ADMU process')
}