Try watching this tutorial it shows you how to move scripts and call them from the command line, might be something in there you missed that fixes it. https://simplymaya.com/forum/showthread.php?t=34864