Transfer.sh.psm1

function New-Transfersh{

    [CmdletBinding()]

    Param(
        [Parameter(Mandatory=$true)]
        [String]$Path
    )

    $FileName = Get-ItemPropertyValue -Name name -Path $Path
    $UploadUri = "https://transfer.sh/" + $FileName
    $Response = Invoke-WebRequest -Method Put -InFile $Path -Uri $UploadUri
    Write-Host "Link to your file: $Response"
}