Thank you for your help!
UPDATE: I have figured out that it must have something to do with the cmd.exe shell, because it runs fine on PowerShell. I will try to figure out a workaround for this and will update this thread later today.
Thank you for your help!
UPDATE: I have figured out that it must have something to do with the cmd.exe shell, because it runs fine on PowerShell. I will try to figure out a workaround for this and will update this thread later today.