PublishToGallery.ps1

$p = @{
    Name        = "PSStringScanner"
    NuGetApiKey = $NuGetApiKey
    ReleaseNote = "Provides lexical scanning operations on a String"
}

Publish-Module @p