Get-QlikApp.ps1
function Get-QlikApp { <# .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 Get-QlikApp 'abc' Description of the example. #> <# Enable -Confirm and -WhatIf. #> [CmdletBinding(SupportsShouldProcess = $true, DefaultParameterSetName="Multi")] param( [parameter(ParameterSetName="Single",Mandatory=$false,Position=0)] [string]$id, [parameter(ParameterSetName="Multi",Mandatory=$false)] [string]$filter, [parameter(ParameterSetName="Multi",Mandatory=$false)] [switch]$full, [switch]$raw ) begin { } process { $path = "/qrs/app" If( $id ) { $path += "/$id" } If( $full ) { $path += "/full" } If( $raw ) { $rawOutput = $true } return Invoke-QlikGet $path $filter } end { } } if ($loadingModule) { Export-ModuleMember -Function 'Get-QlikApp' } |