Keyboard shortcut using autohotkey to toggle on and off

I want to control wled using keyboard shortcut e.g: ctrl+pause using autohotkey. is there any way to do that? or is there another app that can modify json api in wled? I managed to create a cmd command to modify it, but I don’t know how to implement it into a 1x click shortcut. this is the cmd command
$json = Invoke-RestMethod -Uri "" $json.on = $true $body = $json | ConvertTo-Json Invoke-RestMethod -Uri "" -Method Post -Body $body -ContentType "application/json"