Powershell: How to attach a file

Powershell: How to attach a file

I have a problem. I want to use the API to attach a file to an request. The problem is that I can only find examples how this is done with C# or Java.
But I specifily need to do it with powershell. Is this even possible?

I want to to be done when the request is created. But a second API request that attach a file to an existing request is fine too.

                  New to ADSelfService Plus?