Script to install a profile that is showing "administratively removed" so i can quickly reinstall it on about 400 devices instead of doing this manually

I sent a ps script to revoke restart and reinstall a profile but it got hung up half way through and now the profile is stuck on 'administratively removed' and i have to manually install it back. Is there a script that i can send to all of them for the profile in question to grab them all in one go?

a year ago
Android Scripting
ANSWERS