No such command: shim

I was trying to install a new package and I aborted the ppm script early. Now my entire install is stuck at this:

Something Went Wrong
x No such command: shim

How can I repair this? Calling perl or ppm just ends up here.

ppm has reached end of life, please use the State Tool instead: