@MrFlinstone , Thank you for reaching out. To call an Azure AD protected API, you can use something like:
This sample uses client_credentials flow to fetch access-tokens from AAD.
You can find the Powershell script here.
Note: Please modify the api as per requirement, as here we used Graph API for the test.
Hope this helps.
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.