In case anyone else encounters this, the issue is that using the run as feature in a task sequence that isn't OSD seems to require an account with interactive login. If it's an OSD task sequence, interactive login is not required. I had to call the credentials in the script and use a variable for the password to get around this.