Default How to access DIAG mode in AOSP?

I'm running Task650's ROM and I need to get into DIAG Mode. What do I do? When I run a script in script manager, it says that it can't create a file because the directory does not exist. Any workarounds?