Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $content = @"
- You can enter your message content here.
- With a here-string, new lines are included as well!
- Enjoy.
- "@
- $payload = @{
- message = $content
- }
- Invoke-RestMethod -Uri $hookUrl -Method Post -Body ($payload | ConvertTo-Json)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement