function Set-NetboxHostPort { [CmdletBinding(ConfirmImpact = 'Low', SupportsShouldProcess = $true)] [OutputType([string])] param ( [Parameter(Mandatory = $true)] [uint16]$Port ) if ($PSCmdlet.ShouldProcess('Netbox Port', 'Set')) { $script:NetboxConfig.HostPort = $Port $script:NetboxConfig.HostPort } }