@Swahela Mulla Thanks for posting in our Q&A.
For this issue, it is more related to develop scope. The links you provided are only used to get the current Apple Push Notification (APN) Certificate.
Based on my research, there is no direct PowerShell script provided to renew an Apple Push Notification (APN) Certificate.
Given this situation, it is suggested to create an online support ticket to find if there is any helpful information. Here is the support link:
https://learn.microsoft.com/en-us/mem/get-support
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.