New-QlikTag.ps1
function New-QlikTag { <# .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 New-QlikTag 'abc' Description of the example. #> <# Enable -Confirm and -WhatIf. #> [CmdletBinding(SupportsShouldProcess = $true)] param( [parameter(Mandatory=$true,Position=0)] [string]$name ) begin { } process { $json = (@{ name=$name; } | ConvertTo-Json -Compress -Depth 10) return Invoke-QlikPost '/qrs/tag' $json } end { } } if ($loadingModule) { Export-ModuleMember -Function 'New-QlikTag' } |