Private/private.ps1

function Get-Elevation {
    #Admin Privleges Check
    $AdminConsole = [bool](([System.Security.Principal.WindowsIdentity]::GetCurrent()).groups -match "S-1-5-32-544")

    if ($AdminConsole -like "False*") {
        Write-Warning "You need to run Powerhsell as an admin to use this function!"
        Write-Host ' '
        Break
    }
}


function Invoke-Unzip {
    #Allows for unzipping folders in older versions of powershell
    param([string]$zipfile, [string]$outpath)
    Add-Type -AssemblyName System.IO.Compression.FileSystem
    [System.IO.Compression.ZipFile]::ExtractToDirectory($zipfile, $outpath)
}