The ways to run powershell as part of a recovery plan are:
1. Call a script on the appliance (using bash, perl or python) that will call the powershell script on another VM. Ideally this other VM will always be running at the recovery site.
2. Run a script on a recovered VM
Regarding running a script during cleanup, we haven't added this capability yet. It is something we're working on though.