# shellcheck shell=dash
___x_cmd_pwsh_ip(){
    local x_output_mode=; local x_output=
    pwsh:arg:null

    while [ $# -gt 0 ]; do
        case "$1" in
            -h|--help) ___x_cmd help -m pwsh ip; return ;;
        esac
        pwsh:output:mode:all
    done

    if [ "$x_output_mode" = app ]; then
        ___x_cmd_pwsh___exec "$x_output_mode" "Get-NetIPAddress" "$x_output" \
            | ___x_cmd csv tab - 46,45,44,5,3,42,1,2,6,49,47,48 \
            | ___x_cmd csv --app
        return
    fi
    ___x_cmd_pwsh___exec "$x_output_mode" "Get-NetIPAddress" "$x_output"
}
