Set the Uri with a $null Path like:
Set-AdfsWebTheme -TargetName CustomTheme1 -AdditionalFileResource @{Uri = "/adfs/portal/logo/logo-custom.png"; Path=$null }
Note: Posts are provided “AS IS” without warranty of any kind, either expressed or implied, including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose.