@miguel rodriguez
Thank you for posting in Microsoft Q&A forum.
I test many parameter combinations in my lab, and found we may need to use parameter -ScriptContent and -MsiOrScriptInstaller with -EnableContentLocationFallback.
And here is a warning of the results:
WARNING: The cmdlet 'Set-CMDeploymentType' has been deprecated and may be removed in a future release. The cmdlet 'Set-CMScriptDeploymentType/Set-CMMsiDeploymentType' may be used as a replacement.
If the response is helpful, please click "Accept Answer" and upvote it.
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.