test powershell script in forward sync rule before implementing

i have a forward sync rule that is a powershell script. i wish to make changes to the code, but before doing so, is there a way to test it until waiting for the job to run and erroring.