So, i think i have narrowed this down to the Import-Module SQLPS line of code. I can comment out everything before and after it, and it returns the exit code of 1. I can comment the line before and the rest of the script, and it does not return and error or exit code 1. I'm totally baffled. I also tried calling the .psd1 file directly with the full path and got the same result.
↧