try {
    # 外側のtryブロック
    try {
        # 内側のtryブロック
        $result = 1 / 0
    }
    catch {
        # 内側のcatchブロック
        Write-Output "内側のエラーが発生しました。"
        Write-Output $_.Exception.Message
    }
    finally {
        # 内側のfinallyブロック
        Write-Output "内側の処理が完了しました。"
    }
}
catch {
    # 外側のcatchブロック
    Write-Output "外側のエラーが発生しました。"
    Write-Output $_.Exception.Message
}
finally {
    # 外側のfinallyブロック
    Write-Output "処理が完了しました。"
}