exported/New-AddressObject.ps1
function New-AddressObject { [CmdletBinding()] param( [Parameter(ParameterSetName='default', HelpMessage='Fully qualified domain name.')] [string] ${Fqdn}, [Parameter(ParameterSetName='default', HelpMessage='IPV4 address.')] [string] ${Ip}, [Parameter(ParameterSetName='default', HelpMessage='IPV6 address.')] [string] ${Ipv6}, [Parameter(ParameterSetName='default', HelpMessage='Port Number')] [int] ${Port}) begin { try { $outBuffer = $null if ($PSBoundParameters.TryGetValue('OutBuffer', [ref]$outBuffer)) { $PSBoundParameters['OutBuffer'] = 1 } $wrappedCmd = $ExecutionContext.InvokeCommand.GetCommand('Nutanix.private\New-AddressObject', [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-AddressObject .ForwardHelpCategory Cmdlet #> } |