Publish-Module.ps1
Import-Module -Name $PSScriptRoot\PSAzureQueue.psd1; $NuGetApiKey = ConvertTo-SecureString -String (Get-Content -Path "$env:USERPROFILE\NuGetApiKey.json"); $NuGetCredential = New-Object -TypeName PSCredential -ArgumentList @('username', $NuGetApiKey); Publish-Module -Name $PSScriptRoot\PSAzureQueue.psd1 -NuGetApiKey $NuGetCredential.GetNetworkCredential().Password; |