MSBuild Creating bin/Debug in Release Configuration

I’m having trouble finding someone who may have experienced a similar issue. I’m using gitlab-runner on a Windows Server to trigger a build of a .NET web app using powershell script in .gitlab-ci.yml. It’s pretty straight forward:

- '& "$env:NUGET_PATH" restore "$env:SOLUTION_FILE"'
- '& "$env:MSBUILD_PATH" "$env:PROJECT_FILE" /p:DeployOnBuild=True /p:CreatePackageOnPublish=True /p:WebPublishMethod=FileSystem /p:publishUrl="$webFolder" /p:PrecompileBeforePublish=True /p:EnableUpdateable=True /p:DebugSymbols=False /p:Configuration=Release'

Despite the fact that Configuration=Release is set, I’m getting output to ./bin/Debug folder as opposed to ./bin/Release. However, if take those same two lines and run them in PowerShell ISE, I get a ./bin/Release folder as expected. I’ve verified in the job log that the proper script is being used, it just proceeds to output to the wrong folder. I’m not sure if this is an msbuild issue or a gitlab-runner issue. Thank you for reading.

Edit: here’s the same two lines (with appropriate paths in place of variables) run directly in PowerShell ISE: