diff --git a/.azure-pipelines/nightly.yml b/.azure-pipelines/nightly.yml
index e8e3f881..6078c137 100644
--- a/.azure-pipelines/nightly.yml
+++ b/.azure-pipelines/nightly.yml
@@ -68,7 +68,7 @@ extends:
                 displayName: npm install
                 inputs:
                   verbose: false
-              - task: Bash@3
+              - task: CmdLine@2
                 displayName: npx gulp build_server
                 inputs:
                   targetType: inline
diff --git a/.azure-pipelines/rc.yml b/.azure-pipelines/rc.yml
index f4ff74cc..0038ff36 100644
--- a/.azure-pipelines/rc.yml
+++ b/.azure-pipelines/rc.yml
@@ -63,7 +63,7 @@ extends:
                 displayName: npm install
                 inputs:
                   verbose: false
-              - task: Bash@3
+              - task: CmdLine@2
                 displayName: npx gulp build_server
                 inputs:
                   targetType: inline
@@ -85,7 +85,7 @@ extends:
                 displayName: Replace AI Key
                 inputs:
                   script: npx json@9.0.6 -I -f package.json -e "this.aiKey=\"%AI_KEY%\""
-              - task: Bash@3
+              - task: CmdLine@2
                 displayName: vsce package
                 inputs:
                   targetType: inline