compose multiple variables into a command line, then execute it.
$dest="a:\des"
$source="b:\src"
$cmdlink="cmd"
$cmdPart1="/c", "mklink", "/j"
& $cmdlink $cmdPart1 $dest\juncname1 $source\hello
& $cmdlink $cmdPart1 $dest\juncname2 $source\world
& $cmdlink $cmdPart1 $dest\juncname3 $source\peace
标签:cmdPart1,string,dest,cmd,source,pwsh,cmdlink
From: https://www.cnblogs.com/Searchor/p/17497444.html