Public/New/New-HaloAction.ps1

Function New-HaloAction {
    <#
    .SYNOPSIS
        Creates an action via the Halo API.
    .DESCRIPTION
        Function to send an action creation request to the Halo API
    .OUTPUTS
        Outputs an object containing the response from the web request.
    #>

    [CmdletBinding()]
    Param (
        [Parameter( Mandatory = $True )]
        [PSCustomObject]$Action
    )
    Invoke-HaloUpdate -Object $Action -Endpoint "Actions"
}