Updates/ModuleUpdate.ps1
$Password = Import-CliXml -Path $SecurePasswordPath Unlock-SecretStore -Password $Password $Key = Get-Secret -Name Poshgallery #Publish newest module version to PSgallery Publish-Module -Name Desktopsharedmod -NuGetApiKey $Key $Laptops = [Ordered]@{ "KP" = "INT013468L"; "Kev" = "INT013377L"; "Jacob" = "INT011854L"; "Tommy" = "INT013605L"; "Chris" = "INT013132L"; "Beau" = "INT012597L" } [PSCustomObject]$Laptops.PSObject.TypeNames.Insert(0,"Tech.Laptops") function Get-MyObject { [OutputType('Tech.Laptops')] [CmdletBinding()] param( [PSTypeName('Tech.Laptops')]$Data ) Write-Output $Data } |