The exec command didn't appear to do anything as it was just relaying a hard-coded "dir" command so I took it over.  Also, if you like the cmd name for the command we should rename the script command to powershell.