Removed / from beginning of path in script file for $filePath. This removed one error but did not fix the overall problem.