If its any help, I have shared a fixlet I created that will do some of what you may be looking for, in my case it was downloading Defender MPAM and refresh and deploy a fixlet with the updated file information. Maybe there are some aspects you can use for your use case.
2 Likes