# powershell 7
pwsh() {
'/mnt/c/Program Files/PowerShell/7/pwsh.exe' "$@"
}
# powershell 5.1など
pwsh() {
'/mnt/c/Windows/system32/WindowsPowerShell/v1.0/powershell.exe' "$@"
}
pwsh -Command 'Get-Process | Select-Object Id, ProcessName, @{Name="CommandLine";Expression={(Get-CimInstance Win32_Process -Filter "ProcessId=$($_.Id)").CommandLine}} | Out-String -Width 4096'