It looks like you're trying to block the app using " Show or hide apps" from the restrictions payload. This setting adds a config within the profile called " blacklisted App Bundle IDs" but it is only supported on iOS, and not MacOS (documentation). MacOS has Migration Assistant protected by SIP (system integrity protection), so it cannot be removed via "Systems Manager -> Software" or by any script. Although SM can detect installed and running programs (via security policies, or fetch process list live tool), it does not have the ability to automatically kill those processes if they are running. I would recommend that you submit a "make a wish" for the ability to prevent applications from being run, I don't see any simple way to prevent users from launching Migration assistant.
... View more