Import-QlikExtension.ps1

function Import-QlikExtension {
    <#
    .SYNOPSIS
    This function ...
 
    .DESCRIPTION
    A bit more description
 
    .PARAMETER FromPipeline
    Shows how to process input from the pipeline, remaining parameters or by named parameter.
 
    .EXAMPLE
    Import-QlikExtension 'abc'
 
    Description of the example.
 
    #>


    <# Enable -Confirm and -WhatIf. #>
    [CmdletBinding(SupportsShouldProcess = $true)]
    param(
       [String]$ExtensionPath,
    [String]$Password
    )

    begin {
    }

    process {
            $Path = "/qrs/extension/upload"
    if($Password) { $Path += "?password=$Password" }
    return Invoke-QlikUpload $Path $ExtensionPath
    }

    end {
    }
}

if ($loadingModule) {
    Export-ModuleMember -Function 'Import-QlikExtension'
}