Removed all the variables for paths, as I'm not able to find a happy way to pass those in. Apparently the script resources that appear to be scriptblocks are actually strings.