[lang-ref] 実行時のコマンド名(パス)を取得 ( powershell )
It 'should get executed command path' {
# $PSCommandPath
$output = powershell -ExecutionPolicy Bypass -NoProfile -File .\example\GetExecutedCommandPath.ps1
$output.Trim() | Should -Be (Join-Path (Get-Location) 'example\GetExecutedCommandPath.ps1')
}