By defining Microsoft PowerShell functions within PowerShell modules, you can organize your scripts, avoid duplicating code, ...
On the current v5 docs page for Endpoints, two sections conflict: Body states the request body is exposed as $Body (string) and JSON should be parsed with ConvertFrom ...