Invoke-QlikGet.ps1
function Invoke-QlikGet { <# .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 Invoke-QlikGet 'abc' Description of the example. #> <# Enable -Confirm and -WhatIf. #> [CmdletBinding(SupportsShouldProcess = $true)] param( [parameter(Mandatory=$true,Position=0)] [string]$path, [parameter(Position=1)] [string]$filter ) begin { } process { If( $filter ) { If( $path.contains("?") ) { $path += "&filter=$filter" } else { $path += "?filter=$filter" } } return CallRestUri Get $path } end { } } if ($loadingModule) { Export-ModuleMember -Function 'Invoke-QlikGet' } |