BPM not working in 10.2.500

If you want to convert that code to Invoke-BO blocks for easier upgrades in the future: