What is the difference between dot (.) and ampersand (&) in PowerShell?
问题 In PowerShell, what is the difference between using dot ( . ) and ampersand ( & ) when invoking a cmdlet, function, script file, or operable program? For example: . foo.sh1 & foo.sh1 There is a very similar question which has been incorrectly closed as a duplicate: Differences between ampersand (&) and dot (.) while invoking a PowerShell scriptblock. The questions are different and have completely different keywords and search rankings. The answer on What is the `.` shorthand for in a