Public/ps1/Configuration/Upgrade/Start-ApprxrUpgrade.ps1

<#
    .SYNOPSIS
    Upgrades the Apprxr module to the latest version.
 
    .DESCRIPTION
    Removes, uninstalls, and reinstalls the Apprxr module, then reloads it into the current session.
 
    .EXAMPLE
    Start-ApprxrUpgrade
 
    .NOTES
    Used to ensure the latest version of Apprxr is installed and loaded.
#>

function Start-ApprxrUpgrade {    
    (Get-module Apprxr).Version
    Remove-Module Apprxr
    Uninstall-Module Apprxr
    Install-Module Apprxr
    Import-Module Apprxr
    start-powershell
    (Get-module Apprxr).Version
}