Testing scripts within an MRPE environment

What is the best way to troubleshoot MRPE checks that are not producing an output when run using MRPE, but work fine on the command line?
I have read that the environments are different, so the question is how can i test my scripts will run in the MRPE environment locally before i set them up to be baked and pushed out to all agents.