Is there any reason you cant use cmd_psh_payload(payload.encoded) to fire the payload up?

Presumably you then wouldn't require the webserver and additional network traffic.