Functions/Get-Puppeteer_CallFunction.ps1

<#
.SYNOPSIS
    This function returns the JS code snippet for calling a function.
#>

function Get-Puppeteer_CallFunction {
    [CmdletBinding(PositionalBinding=$true)]
    [OutputType([String])]
    param (
        # The name of the function to call
        [Parameter(Mandatory=$true)]
        [ValidateNotNullOrEmpty()]
        [String]$functionName
    )
    return "$($functionName)();"
}