Welcome › Forums › General PowerShell Q&A › The difference between call operator & and Start-Process
I do not understand what is the difference between
and
Can one please explain it with an example. And is call operator & from Powershell or Docs.
Thanks alot.
The call (&) and Invoke-Expression are used to execute something, basically run it. See the Call Operator here:
https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_operators?view=powershell-7.1
Start-Process provides a more parameter based approach with functionality such as waiting for completion to get exit codes rather than just starting a process. There are examples included in the documentation.
Many thanks for the rich info.