Public/MIA/Start-MIATask.ps1

1
2
3
4
5
6
7
8
9
10
11
12
13
14
function Start-MIATask
{
    [CmdletBinding()]
    param (
        [Parameter(Mandatory,
                    ValueFromPipelineByPropertyName)]
        [Alias('Id')]
        [string]$TaskId,
        [hashtable]$Params
    )

    $response = Invoke-MIARequest -Method 'Post' -Resource "tasks/$TaskId/start" -Body $Params
    Write-Output $response
}