exported/New-TaskPollInputObject.ps1
function New-TaskPollInputObject { [CmdletBinding()] param( [Parameter(ParameterSetName='default', Mandatory=$true, HelpMessage='Poll timeout in seconds')] [int] ${PollTimeoutSeconds}, [Parameter(ParameterSetName='default', Mandatory=$true, HelpMessage='List of task UUIDs to poll on')] [string[]] ${TaskUuidList}) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\New-TaskPollInputObject', [System.Management.Automation.CommandTypes]::Cmdlet) $scriptCmd = {& $wrappedCmd @PSBoundParameters } $steppablePipeline = $scriptCmd.GetSteppablePipeline($myInvocation.CommandOrigin) $steppablePipeline.Begin($PSCmdlet) } catch { throw } } process { try { $steppablePipeline.Process($_) } catch { throw } } end { try { $steppablePipeline.End() } catch { throw } } <# .ForwardHelpTargetName Nutanix.private\New-TaskPollInputObject .ForwardHelpCategory Cmdlet #> } |