Set the URL for the module
Register the default URL that the module should be using
URL of the HTTP Endpoint that you want the module to invoke
.PARAMETER Temporary
Switch to instruct the cmdlet NOT to store the URL in the persisted storage for the module
Set-PSNUrl -Url ""
This will set the default URL for the module to ""
Author: Mötz Jensen (@Splaxi)

function Set-PSNUrl {
    [Diagnostics.CodeAnalysis.SuppressMessageAttribute("PSUseShouldProcessForStateChangingFunctions", "")]
    param (
        [Parameter(Mandatory = $true)]
        [string] $Url,

        [switch] $Temporary
    end {
        Set-PSFConfig -FullName "psnotification.url" -Value $Url

        if (-not $Temporary) {
            Get-PSFConfig -FullName "psnotification.url" | Register-PSFConfig
            Write-PSFMessage -Level Verbose -Message "The URL has been configured and registered."