powershell script doesn't work after the update of GitLab-runner from Version 15.5.1 to version 15.7.3

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

PowerShell script doesn't work after the update of GitLab-runner from Version 15.5.1 to version 15.7.3

Following is my pipeline script:

image: "mcr.microsoft.com/windows/servercore:1809"
before_script:
    - $proxy = New-Object System.Net.WebProxy($MY_PROXY, $true)
    - $proxy.BypassList = @('my_no_proxy_settings')
    - '[System.Net.WebRequest]::DefaultWebProxy = $proxy'
  script:
    - Invoke-Expression (New-Object System.Net.WebClient).DownloadString('https://get.scoop.sh')

This pipeline throws error when i run it after update of version 15.7.3

image

Edited by 🤖 GitLab Bot 🤖