Private/Remove-eiSCSIFavoriteTarget.ps1

function Remove-eiSCSIFavoriteTarget {
    param(
        [Parameter(ValueFromPipelineByPropertyName, Mandatory)]
        [string] $SessionIdentifier
    )

    process {
        $wmiResponse = Get-WmiObject -Class MSFT_iSCSISession -Namespace ROOT/Microsoft/Windows/Storage | Where-Object {$_.SessionIdentifier -eq $SessionIdentifier}
        $wmiResponse = $wmiResponse.Unregister()

        return $wmiResponse
    }
}