Public/Reset-NetworkAdapter.ps1

function Reset-NetworkAdapter {

    <#
    .DESCRIPTION
    Reset a specified interface

    .Parameter Interface
    Interface to be disabled and enabled

    .EXAMPLE
    Reset-NetworkAdapter -interface "Local Area Connection"

    .Link
    Reset-NetworkStack
    #>


    [CmdletBinding()]
    param (
        [Parameter(Mandatory = $true)]$Interface
    )

    #Check For Admin Privleges
    Get-Elevation

    netsh.exe interface set interface $Interface admin=disable
    netsh.exe interface set interface $Interface admin=enable
}