Hi Adil, you can make use of -Body parameter:
Invoke-WebRequest -Headers @{"Authorization" = "Basic ???"} -ContentType application/json -Method POST -Uri https://???/task/sample -Body (@{"param1"="value";}|ConvertTo-Json)
Please inform if it works for you.