In Azure CLI there is a --no-wait command there is identical command on PowerShell?

Gilad Gershon 21 Reputation points

The Azure CLI has a --no-wait command
Is there an identical command in powerShell?

Windows Server PowerShell
Windows Server PowerShell
Windows Server: A family of Microsoft server operating systems that support enterprise-level management, data storage, applications, and communications.PowerShell: A family of Microsoft task automation and configuration management frameworks consisting of a command-line shell and associated scripting language.
5,429 questions
0 comments No comments
{count} votes

Accepted answer
  1. Limitless Technology 39,461 Reputation points

    Hello @Gilad Gershon ,

    As far as I am aware there is no such parameter built in. Normally what I do in my scripts is to run that line as a "job" so it will run in a different session and my main script can continue.


    1. Save the line(s) you don't want to wait for in a PS1
    2. change the line in your script for: Start-Job -FilePath <path\filename.ps1>

    Hope this resolves your query,
    Best regards,

    1 person found this answer helpful.

1 additional answer

Sort by: Most helpful
  1. Andreas Baumgarten 99,376 Reputation points MVP

    Hi @Gilad Gershon ,

    using Invoke-Command with the -InDisconnectedSession option might be what you are looking for:


    (If the reply was helpful please don't forget to upvote and/or accept as answer, thank you)

    Andreas Baumgarten

    1 person found this answer helpful.