Refer to the following table:
Statement separator |
; |
Get-Command Get-Process; Get-Command Get-Help |
Call operator |
& |
& ‘Get-Process’ # Invoke the string as a command |
Dot-source operator |
. |
. C:script.ps1 # Execute the script in the current scope (instead of its own scope) |