update_helper.ps1

#Import PSget
Import-Module PowerShellGet

# Setup Module Values
$Modulename = 'WC-BlackberryUEM'
$Repository = 'whitecase-powershell'
$Version = '1.0.6'

#Set up Manifest
$manifest = @{
    Path              = ".\$Modulename.psd1"
    Author            = 'Phillip Marshall'
    Description       = 'White & Case Blackberry UEM Module'
    CompanyName       = 'White & Case'
    FunctionsToExport = @('Search-UEMAPiUser',
                          'Get-UEMAPIUserDevices',
                          'Invoke-UEMUserDeviceCommand',
                          'Get-UEMApiAuthString',
                          'Invoke-UEMUserDeviceApplicationCommand',
                          'Get-UEMAPIUApplications')
}
New-ModuleManifest @Manifest
Test-ModuleManifest -Path ".\$ModuleName.psd1"

#Publish the module
Publish-Module -Name ".\$Modulename.psd1" -Repository $Repository -verbose

#Install the module
Install-Module -Name $Modulename -Repository $Repository -force -Verbose -Scope CurrentUser

#Update Help Docs
Import-module -Name 'C:\code\PowerShell Modules\wc-blackberryuem\WC-BlackberryUEM.psd1'
New-MarkdownHelp -Module WC-BlackberryUEM -OutputFolder 'C:\code\PowerShell Modules\wc-blackberryuem\help\' -force