Well, via PowerShell :) For example, if you have them in a CSV file, you can do something like this:
Import-CSV blabla.csv | % { Set-HostedConnectionFilterPolicy "Default" -IPAllowList @{Add=$_.IP}; Start-sleep -Milliseconds 500 }
You can also concatenate them in a single string, but they all need to be of the same type.