[lang-ref] ( get_executed_command_path_when_called_from_another_script ) ( powershell )
It 'should get executed command path when called from another script' {
# $PSCommandPath
$output = powershell -ExecutionPolicy Bypass -NoProfile -File .\example\GetExecutedCommandPathCall.ps1
$output.Trim() | Should -Be (Join-Path (Get-Location) 'example\GetExecutedCommandPath.ps1')
}