Public/ps1/Sql/Start-ApprxrSqlCommand.ps1

<#
    .SYNOPSIS
        Executes a SQL command using Apprxr's job infrastructure.
    .DESCRIPTION
        This function receives a SQL command string, wraps it in the required taskInformation structure, and calls Start-ApprxrJobSql to execute it.
    .PARAMETER Command
        The SQL command to execute.
    .EXAMPLE
        Start-ApprxrSqlCommand -Command "SELECT * FROM Users"
    #>

function Start-ApprxrSqlCommand {
    
    [CmdletBinding()]
    param(
        [Parameter(Mandatory=$true, Position=0)]
        [string]$Command
    )
    $taskInformation = @{ command = $Command }
    Start-ApprxrJobSql -taskInformation $taskInformation
}