Hi
Thanks for reaching out to Microsoft Q&A.
This is, atleast some of it is in-line with your previous question that you have raised.
Can you check if the below answer 'wBob' will suit for your ask? it's worth to check the replies too, it might provide you guidance if not an exact solution.
https://stackoverflow.com/a/68455706
Please Upvote and Accept as answer if the reply was helpful, this will be helpful to other community members.