Public/Connect/Connect-SharePointPNP.ps1

function Connect-SharePointPNP {

    [CmdletBinding(SupportsShouldProcess = $true)]
    Param
    (

        [Parameter(Mandatory)]
        [string]
        $Url

    )
    end {
        if ( -not (Get-Module -ListAvailable SharePointPnPPowerShellOnline)) {
            Install-Module SharePointPnPPowerShellOnline -Force -SkipPublisherCheck
        }
        Connect-PnPOnline -Url $Url -UseWebLogin
    }
}