The Azure CLI has a --no-wait command
Is there an identical command in powerShell?
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,
Hi @GiladGershon-6057 ,
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)
18 people are following this question.