Hi @banana , this article uses PendingAcceptance with Powershell! This documentation walks through B2B collaboration API which I think will help you. Looking at these documents you should be able to piece together ways to use this for your scenario. If you still need help please let me know!
Hope this helps,
James